Public paste
Undefined
By: checkum | Date: Dec 19 2006 16:02 | Format: None | Expires: never | Size: 1.08 KB | Hits: 1463

  1. on *:TEXT:PERMBAN*:?:{
  2.   if ($readini(databaseglobal.ini,owner,$address($nick,2)) == owner) || ($readini(databaseusers.ini,users,$address($nick,2)) == master) || ($readini(databaseusers.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.       close -m $nick
  7.     }
  8.     else {    
  9.       if (!$3) {
  10.         notice $nick forgot to type a nickname
  11.         close -m $nick
  12.       }
  13.       else {
  14.         if ($chr(35) isin $2) {
  15.           writeini database/banlist.ini permbans $2 $address($3,2)
  16.           notice $nick $3 has been permanent banned in the channel $2
  17.           ban $2 $3 You have been PERM. BANNED from this channel!!!
  18.           close -m $nick
  19.         }
  20.         else {
  21.           notice $nick Permban : not enough parameters
  22.           notice $nick Try /msg $me Permban help for info
  23.           close -m $nick
  24.         }
  25.       }
  26.     }
  27.   }
  28.   else {
  29.     notice $nick You don't have acces to this command
  30.   }
  31. }
  32.