Public paste
Undefined
By: jew | Date: Dec 19 2006 15:54 | Format: None | Expires: never | Size: 1.02 KB | Hits: 676

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