Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #######################
- # CHECK FOR COMMAND?? #
- #######################
- if ($noqq == 0 && substr($mtext,-2,2) eq "??") {
- if ($mtext =~ /^\Q$botname\E($botanswer)/i) {
- sndtxt("Use either \002$botname, command\002 or \002command??\002, not both.");
- next;
- }
- $mtext = "$botname, " . substr($mtext,0,length($mtext)-2);
- $silent = 1;
- }
- if (substr($mtext,0,1) eq $commandchar) {
- $mtext = "$botname, " . substr($mtext,1);
- }
- if((substr($channel, 0, 1) ne "#") && ($command eq "PRIVMSG")) {
- $mtext = "$botname, $mtext";
- }
- if (lc($ffirstword) eq "seen") {
- if ($silent == 0) {
- $mtext = lc($botname) . ", " . $mtext;
- }
- }
Add Comment
Please, Sign In to add comment