Guest User

Untitled

a guest
Jul 17th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #######################
  2. # CHECK FOR COMMAND?? #
  3. #######################
  4. if ($noqq == 0 && substr($mtext,-2,2) eq "??") {
  5. if ($mtext =~ /^\Q$botname\E($botanswer)/i) {
  6. sndtxt("Use either \002$botname, command\002 or \002command??\002, not both.");
  7. next;
  8. }
  9. $mtext = "$botname, " . substr($mtext,0,length($mtext)-2);
  10. $silent = 1;
  11. }
  12.  
  13. if (substr($mtext,0,1) eq $commandchar) {
  14. $mtext = "$botname, " . substr($mtext,1);
  15. }
  16.  
  17. if((substr($channel, 0, 1) ne "#") && ($command eq "PRIVMSG")) {
  18. $mtext = "$botname, $mtext";
  19. }
  20.  
  21. if (lc($ffirstword) eq "seen") {
  22. if ($silent == 0) {
  23. $mtext = lc($botname) . ", " . $mtext;
  24. }
  25. }
Add Comment
Please, Sign In to add comment