]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Process.pl
- irctextcounter: ORDER by counter, not nick!
[infobot.git] / src / Process.pl
index 81c29a98bb9ea1446f654eb29c768c5e5b5abb2a..f23143b4d006b4ba978258342ee7f2fc5680dc05 100644 (file)
@@ -134,7 +134,13 @@ sub process {
        }
 
        # todo: use &getUser()?
-       my $first       = (scalar keys %users < 2) ? 1 : 0;
+       my $first       = 1;
+       foreach (keys %users) {
+           if ($users{$_}{FLAGS} =~ /n/) {
+               $first = 0;
+               last;
+           }
+       }
 
        if (!exists $users{$who} and !$first) {
            &pSReply("nick $who is not in user list.");
@@ -394,6 +400,9 @@ sub FactoidStuff {
            my $limit   = &getChanConfDefault("factoidPreventForgetLimit", 
                                0, $chan);
 
+           &DEBUG("forget: limit = $limit");
+           &DEBUG("forget: count = $count");
+
            if (IsFlag("r") ne "r") {
                &msg($who, "you don't have access to remove factoids");
                return;