]> ruin.nu Git - NDIRC.git/blobdiff - Commands/Quotes.pm
Introduce a uid member for the context and use it intead of the host in commands
[NDIRC.git] / Commands / Quotes.pm
index 7d18819eb61f038160163571bae522994256c499..608832f9d38094c40173c8d92c0800105acf7d10 100644 (file)
@@ -108,8 +108,8 @@ sub delquote
        $n = $n-1;
        if (exists $FILE[$n]){
                my ($uid,$username) = $c->model->selectrow_array(q{
-SELECT uid,username FROM users where hostmask ILIKE ?
-                       },undef,$c->host);
+SELECT uid,username FROM users where uid = ?
+                       },undef,$c->uid);
 
                my $text = $FILE[$n];
                push @OLDFILE,"Removed by $username ($uid): $text";