Public paste
Undefined
By: loliebollie | Date: Dec 9 2006 21:38 | Format: None | Expires: never | Size: 1.51 KB | Hits: 1403

  1. on *:text:*:?: {
  2.   if ($1 == request) {
  3.     set %request. $+ $gettok($2,1,44) $nick
  4.     if ($3 == ($readini(bots.ini,bots,$3) != channelbot)) {
  5.       notice %request. [ $+ [ $2 ] ] You didn't request a valid #channelbots bot.
  6.       notice %request. [ $+ [ $2 ] ] Try again using a valid #channelbots nick.
  7.       close -m $nick
  8.     }
  9.     elseif (Q !ison $2) && (L !ison $2) {
  10.       timer1 1 1 join $2
  11.       timer2 1 2 notice %request. [ $+ [ $2 ] ] You don't Have L or Q on your channel.
  12.       timer3 1 3 notice %request. [ $+ [ $2 ] ] Try again when your chan has a Quakenet Servicebot.
  13.       timer4 1 4 part $2 Request Failed. Powerd by #channelbots
  14.       timer5 1 5 msg #biggie.dev $2 has been refused : No L,Q on channel.
  15.     }
  16.     elseif (%request. [ $+ [ $2 ] ] !isop $2) {
  17.       timer6 1 1 join $2
  18.       timer7 1 2 notice %request. [ $+ [ $2 ] ] You dont have OP on $2 request refused
  19.       timer8 1 3 part $2 Request Failed. Powerd by #channelbots
  20.       timer9 1 4 msg #biggie.dev $2 has been refused : $nick didn't had OP there.
  21.     }
  22.     else {
  23.       writeini data/requests.ini $2 $address($nick,2) $3 granted
  24.       timer15 1 1 join $2)
  25.       timer16 1 2 notice %request. [ $+ [ $2 ] ] Your request has been granted
  26.       timer17 1 3 notice %request. [ $+ [ $2 ] ] Note : a #channelbots admin will chek the channel again to be sure it meets all the requirements.
  27.       timer18 1 4 msg #biggie.dev request granted for $nick with channel $2 adding bot $3 now
  28.       timer19 1 5 msg $3 addchannel $2
  29.     }
  30.   }
  31. }
  32.