Guest User

Untitled

a guest
Jan 26th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.73 KB | None | 0 0
  1. on *:TEXT:!*:*: {
  2.   ;notice the addition of !* above it will only process if the channel message is starting with !
  3.   if ($ulevel == 53) {
  4.     if ($2 ISCHAN) {
  5.       ;below script is processed only if $2 is chan so its not necessary to use $$2
  6.       if (($1 == !msg) || ($1 == !say)) { msg $2- }
  7.       if ($1 == !part) { part $$2 }
  8.     }
  9.     if ($2 !ISCHAN) {
  10.       ;$2 is a channel what you intend to join , it is obvious you are not already on it so process for !join command should go under here
  11.       if (($1 == !say) || ($1 == !msg)) { msg $chan $$2- }
  12.       if ($1 == !part) { part $chan }
  13.       if ($1 == !join) { join $$2 }
  14.     }
  15.   }
  16.   else notice $nick You don't have permission to use me! Ask R2D2Warrior for permission!
  17. }
Add Comment
Please, Sign In to add comment