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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
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
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 }
}
}