git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@213
c11ca15a-4712-0410-83d8-
924469b57eb5
- if (&validChan($thischan)) {
+ if (&validChan($thischan) and &IsFlag("o") ne "o") {
&msg($who,"I'm already on $thischan...");
return;
}
&msg($who,"I'm already on $thischan...");
return;
}
}
# User Processing, for all users.
}
# User Processing, for all users.
- return '$noreply from userC' if &userCommands() eq $noreply;
+ if ($addressed) {
+ return '$noreply from pCH' if &parseCmdHook("main",$message);
+ return '$noreply from userC' if &userCommands() eq $noreply;
+ }
###
# once useless messages have been parsed out, we match them.
###
# once useless messages have been parsed out, we match them.
# here's where the external routines get called.
# if they return anything but null, that's the "answer".
if ($addressed) {
# here's where the external routines get called.
# if they return anything but null, that's the "answer".
if ($addressed) {
+ if ( &parseCmdHook("extra",$message) ) {
return 'DID SOMETHING IN PCH.';
}
return 'DID SOMETHING IN PCH.';
}