X-Git-Url: https://ruin.nu/git/?p=NDIRC.git;a=blobdiff_plain;f=Commands%2FSMS.pm;h=bc0200c08403007300dfccfcc4adb6cda19a59af;hp=265384ddd9dae941b2e6c1f5d266d028fb3a5838;hb=1ccb344994c1b517c662da9f236cf1c640780177;hpb=ae37bc6b64270f8c65298a36fce1f4bad761231f diff --git a/Commands/SMS.pm b/Commands/SMS.pm index 265384d..bc0200c 100644 --- a/Commands/SMS.pm +++ b/Commands/SMS.pm @@ -45,7 +45,7 @@ sub sendsms }else{ my ($sms) = $dbh->selectrow_array(q{ SELECT sms FROM users WHERE username ilike $1 - AND uid IN (SELECT uid FROM groupmembers WHERE gid = 2) + AND uid IN (SELECT uid FROM groupmembers WHERE gid = 'M') },undef,$number); $sms //= 'No number, or invalid user'; if ($sms =~ /^\+([1-9]\d+)$/){