]> git.donarmstrong.com Git - infobot.git/commitdiff
move identify code before outsider checking
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 3 Feb 2001 14:06:29 +0000 (14:06 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 3 Feb 2001 14:06:29 +0000 (14:06 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@317 c11ca15a-4712-0410-83d8-924469b57eb5

src/Process.pl

index a71841a26178f8d35973adfc7230ff04556ca29f..74909cee807c082785a5536c68c4b89dea40109e 100644 (file)
@@ -80,33 +80,6 @@ sub process {
        return;
     }
 
-    # allowOutsiders.
-    if (&IsParam("disallowOutsiders") and $msgType =~ /private/i) {
-       my $found = 0;
-
-       foreach (keys %channels) {
-           next unless (&IsNickInChan($who,$_));
-
-           $found++;
-           last;
-       }
-
-       if (!$found and scalar(keys %channels)) {
-           &status("OUTSIDER <$who> $message");
-           return 'OUTSIDER';
-       }
-    }
-
-    # User Processing, for all users.
-    if ($addressed) {
-       my $retval;
-       return 'returned from pCH'   if &parseCmdHook("main",$message);
-
-       $retval = &userCommands();
-       return unless (defined $retval);
-       return if ($retval eq $noreply);
-    }
-
     # 'identify'
     if ($msgType =~ /private/ and $message =~ s/^identify//) {
        $message =~ s/^\s+|\s+$//g;
@@ -149,6 +122,33 @@ sub process {
        return;
     }
 
+    # allowOutsiders.
+    if (&IsParam("disallowOutsiders") and $msgType =~ /private/i) {
+       my $found = 0;
+
+       foreach (keys %channels) {
+           next unless (&IsNickInChan($who,$_));
+
+           $found++;
+           last;
+       }
+
+       if (!$found and scalar(keys %channels)) {
+           &status("OUTSIDER <$who> $message");
+           return 'OUTSIDER';
+       }
+    }
+
+    # User Processing, for all users.
+    if ($addressed) {
+       my $retval;
+       return 'returned from pCH'   if &parseCmdHook("main",$message);
+
+       $retval = &userCommands();
+       return unless (defined $retval);
+       return if ($retval eq $noreply);
+    }
+
     ###
     # once useless messages have been parsed out, we match them.
     ###