Public paste
Undefined
By: gsdg | Date: Dec 19 2006 13:51 | Format: None | Expires: never | Size: 1.17 KB | Hits: 705

  1. on *:TEXT:PERMBAN*:?:{
  2.   /echo haha
  3.   var %hpd = $readini(database/global.ini,owner,$address($nick,2) == owner)
  4.   var %hpm = $readini(database/users.ini,users,$address($nick,2) == master)
  5.   var %hpl = $readini(database/users.ini,users,$address($nick,2) == owner)
  6.   if ($2) && (!$3) {
  7.     /echo hahahoehoe
  8.     if (m !isin %hpm) || (m !isin %hpl) || (m !isin %hpd) {
  9.       /echo haha4
  10.       notice $nick You don't have acces to this command
  11.     }
  12.     else notice $nick forgot to type a nickname
  13.   }
  14.   elseif ($3) {
  15.     /echo hahalala  
  16.     if (m isin %hpm) || (m isin %hpl) || (m isin %hpd) {
  17.       /echo haha6
  18.       writeini database/banlist.ini permbans $2 $address($3,2)
  19.       notice $nick $3 Has been perm. banned in the channel $2
  20.       ban $3 $2 You have been PERM. BANNED from this channel!!!
  21.     }
  22.     elseif ($2 == HELP) {
  23.       /echo help
  24.       Notice $nick Permban allows you to ban a user permanatly from your channel.
  25.       notice $nick Usage : /msg $me permban <nick> <channel>
  26.     }
  27.     elseif (!$2) {
  28.       /echo lol
  29.       notice $nick Permban : not enough parameters
  30.       notice $nick Try /msg $me Permban help for info
  31.     }
  32.     close -m $nick
  33.   }
  34. }
  35. }
Latest pastes
6 hours ago
1 days ago
1 days ago
2 days ago
2 days ago