kill kline dot command

By itsmefahad on Jan 23, 2011

Auto kill / kline function use in dot commands , its just a demo script for your facility you can easily edit as per your usage.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Start Of Auto Kill Commands
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

on 1:load:{
  echo -a Sucessfully Load Complete Auto Kill On Short Keys
  echo -a Total : 1107 characters, 150 words, 23 lines
  echo -a Created On Wednesday, February 21, 2007.
  echo -a Script Coded For chat.dodear.com:6666 
  echo -a Author: Fahad 
  echo -a Report Your Bugs/Comments/Suggestion Mail Me At 12[ 4itsmefahad@gmail.com 12]
}

ON *:INPUT:#:{
  if ($1 == .kline) { /os akill ADD $$?="Host/Ip?" $$?="Reason Of AutoKill?" } halt
  if ($1 == .klinet) { /os akill TIME $$?="Time Of Kilne (1d , 1h)?" $$?="Ip/Host?" $$?="Reason Of AutoKill?" } halt
  if ($1 == .klineadv) { /os akill ADD $$?="Host/Ip?" Advertising / Inviting / Spamming Not Allowed On This Network. } halt
  if ($1 == .klineswear) { /os akill ADD $$?="Host/Ip?" [Swearing] You have said an unacceptable word in your message. You need to work on your social skills.} halt  
  }

  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  ;End Of Auto Kill Commands
  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Comments

Sign in to comment.
sunslayer   -  Jan 24, 2011

preference really, imo it makes the code look cleaner

 Respond  
Jethro   -  Jan 24, 2011

A bit off topic...why do people like to /return or /halt when they can negate by using !

if ($readini(mirc.ini,text,commandchar) != $left($1,1)) {

 Respond  
sunslayer   -  Jan 24, 2011

that may be so, but if they change the command character Teen's example won't halt

 Respond  
jaytea   -  Jan 23, 2011

$mircini is safer than assuming 'mirc.ini' points to the INI file mIRC is currently using :P and '/' continues to function as a usable command prefix even after selecting another character in Options -> Other.

 Respond  
sunslayer   -  Jan 23, 2011
if ($readini(mirc.ini,text,commandchar) == $left($$1,1)) { ... }

is safer then assuming that the command character is /

 Respond  
_Teen_   -  Jan 23, 2011

i dont know which Flags do u use for IRCops on your server, but most of servers use +o for Globals and +O for locals

so

On *:Input:#:{
 if (/* iswm $left($1,1)) && ($ctrlenter) || ($inpaste) { return }
 if (O isincs $usermode) { commands }
}

the $ctrlenter and $inpaste will prevent it run the command if the user press ctrl+enter, or its a ctrl+v action (inpaste)

by the way the if (O isincs $usermode) will check if you have IRCop status to do it

 Respond  
D34th   -  Jan 23, 2011

Shouldnt it be more like this?


  On *:Input:#:{
  if (/ !isin $left($1,1)) {
  if ($$1 == .kline) { os akill ADD $$?="Host/Ip?" $$?="Reason Of AutoKill?" | halt }
  if ($$1 == .klinet) { os akill TIME $$?="Time Of Kilne (1d , 1h)?" $$?="Ip/Host?" $$?="Reason Of AutoKill?" | halt }
  if ($$1 == .klineadv) { os akill ADD $$?="Host/Ip?" Advertising / Inviting / Spamming Not Allowed On This Network. | halt }
  if ($$1 == .klineswear) { os akill ADD $$?="Host/Ip?" [Swearing] You have said an unacceptable word in your message. You need to work on your social skills. | halt }  
  }
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.