Public paste
Undefined
By: lolieboillie | Date: Dec 9 2006 20:29 | Format: None | Expires: never | Size: 3.28 KB | Hits: 1250

  1. on *:text:!request *:#needmanager!: {
  2.   set %request. $+ $gettok($2,1,44) $nick
  3.   join $gettok($2,1,44)
  4. }
  5. raw 366:*: {
  6.   if (%request. [ $+ [ $2 ] ]) {
  7.     if ($nick($2,0) < 20) {
  8.       mode +m $chan
  9.       timer1 1 3 msg %request. [ $+ [ $2 ] ] Cheking if the chan has 20 users...  
  10.       timer2 1 6 msg %request. [ $+ [ $2 ] ] Your request has been 4denied 1you dont have 20 users in $2
  11.       timer3 1 9 part $2 Request denied #needmanager!
  12.       timer4 1 12 mode -m $chan
  13.     }
  14.     elseif (%request. [ $+ [ $2 ] ] !isop $2) {
  15.       mode $chan +m
  16.       timer5 1 3 msg %request. [ $+ [ $2 ] ] Cheking if you have op on $2  
  17.       timer6 1 6 msg %request. [ $+ [ $2 ] ] Your request has been 4denied 1You don't have op in $2
  18.       timer7 1 9 part $2 Request denied #needmanager!
  19.       timer8 1 12 mode $chan -m
  20.     }
  21.     elseif (Q !ison $2) && (L !ison $2) {
  22.       mode $chan +m
  23.       timer9 1 3 msg %request. [ $+ [ $2 ] ] Cheking if the chan has 20 users...  
  24.       timer10 1 6 msg %request. [ $+ [ $2 ] ] 9Passed 1chan has 20 users
  25.       timer11 1 9 msg %request. [ $+ [ $2 ] ] Cheking if you have op on $2...
  26.       timer12 1 12 msg %request. [ $+ [ $2 ] ] 9Passed 1You have op on chan
  27.       timer13 1 15 msg %request. [ $+ [ $2 ] ] Cheking if you have L,Q on your chan...
  28.       timer14 1 18 msg %request. [ $+ [ $2 ] ] Your request has been 4denied 1 There is no L,Q on $2
  29.       timer15 1 21 part $2 Request denied #needmanager!
  30.       timer16 1 24 mode $chan -m
  31.     }
  32.     elseif (S ison $2) {
  33.       mode $chan +m
  34.       timer17 1 3 msg %request. [ $+ [ $2 ] ] Cheking if the chan has 20 users...  
  35.       timer18 1 6 msg %request. [ $+ [ $2 ] ] 9Passed 1chan has 20 users
  36.       timer19 1 9 msg %request. [ $+ [ $2 ] ] Cheking if you have op on $2...
  37.       timer20 1 12 msg %request. [ $+ [ $2 ] ] 9Passed 1You have op on chan
  38.       timer21 1 15 msg %request. [ $+ [ $2 ] ] Cheking if you have L,Q on your chan...
  39.       timer22 1 18 msg %request. [ $+ [ $2 ] ] 9Passed 1 You have L,Q on your chan
  40.       timer23 1 21 msg %request. [ $+ [ $2 ] ] Cheking if you have S on your chan...
  41.       timer24 1 24 msg %request. [ $+ [ $2 ] ] You request has been 4denied 1You have S on your chan.
  42.       timer25 1 27 part $2 Request denied #needmanager!
  43.       timer26 1 30 mode $chan -m
  44.     }
  45.     else {
  46.       mode $chan +m
  47.       timer27 1 3 msg %request. [ $+ [ $2 ] ] Cheking if your chan has 20 users...
  48.       timer28 1 6 msg %request. [ $+ [ $2 ] ] 9Passed 1Chan has 20 users
  49.       timer29 1 9 msg %request. [ $+ [ $2 ] ] Cheking if you have op on $2...
  50.       timer30 1 12 msg %request. [ $+ [ $2 ] ] 9Passed 1You have op on $2
  51.       timer31 1 15 msg %request. [ $+ [ $2 ] ] Cheking if you have L,Q on your chan...
  52.       timer32 1 18 msg %request. [ $+ [ $2 ] ] 9Passed 1You have L,Q on your chan
  53.       timer33 1 21 msg %request. [ $+ [ $2 ] ] Cheking if you have S on your chan...
  54.       timer34 1 24 msg %request. [ $+ [ $2 ] ] 9Passed 1 You don't have S on your chan
  55.       timer35 1 27 msg %request. [ $+ [ $2 ] ] Your request has been 9accepted 1adding relay now
  56.       timer36 1 30 msg N-M|relay1 addchannel $2
  57.       timer37 1 33 part $2 request granted #needmanager!
  58.       timer38 1 36 mode $chan -m
  59.     }
  60.     unset %request. $+ $2
  61.   }
  62. }