Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 10th, 2012  |  syntax: mIRC  |  size: 0.86 KB  |  hits: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if ($2 == join) {
  2.     if (!$4) notice $nick < join bot number channel
  3.     elseif ($readini(wc.ini,system,bots) < $3) { notice $nick There is no bot $+($3,!) }
  4.     elseif ($numtok($readini(wc.ini,$+(wc.,$3),channels),44) >= 28) notice $nick Bot $+($chr(33),$3) is full.  
  5.     var %a $readini(wc.ini,system,bots)
  6.     while (%a) {
  7.       if ($findtok($readini(wc.ini,$+(wc.,%a),channels),$4,44)) var %b %a
  8.       dec %a
  9.       elseif (%b) notice $nick Bot %b is already on $+($4,.)
  10.     }
  11.     else {
  12.       msg # 9Join: Sending bot $3 to $+($4,.)
  13.       writeini wc.ini $+(wc.,$3) channels $addtok($readini(wc.ini,$+(wc.,$3),channels),$4,44)
  14.       sockwrite -n $+(wc.,$3) JOIN $4
  15.       sockwrite -n $+(wc.,$3) PRIVMSG $4 :14Euro2012 Bot :: Joined by4 $nick 14(administratively) :: Want me to leave? Kick me. :: If you need help, join4 #Euro-2012 
  16.     }
  17.   }