|
Joined: May 2007
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: May 2007
Posts: 7 |
This code kline not working on *@:text:*:#:{
var %n = $nick,%c = #,%t = $strip($1-)
if (*www.?.com iswm %t) || (*http://* iswm %t) || (*www.?.org* iswm %t) || (*www.?.net* iswm %t) || (www?.co.uk* iswm %t) || (www?.co.au* iswm %t) {
if (%n !isop %c) && (%n !isvoice %c) {
.kill %n Auto-kill: dont post url
.kline $address(%n,2) Stop Spamming In Our Server
echo $active $timestamp (4Warn) Punishing $9 with kline for advertise with $1-
onotice #wiredreality (#wiredreality/Ops) Kline triggered on $9 for Advertising $1- nickname : $nick in room $chan
:end
}
}
}
|
|
|
|
Joined: May 2007
Posts: 7
Nutrimatic drinks dispenser
|
OP
Nutrimatic drinks dispenser
Joined: May 2007
Posts: 7 |
and this anyone know how kick ppl when use away badword i'm mean on raw it should working on*.raw 301:*:{
if (sex iswm $2) {
mode # +b $address($nick,3)
kick # $nick You To smart But I'm more smart
.timer[Awaymsg] 1 60 mode # -b $address($nick,3)
}
}
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
klines and kills, for UnrealIRCd, require IRCops status. If the client running the code doesn't have this access, then it won't work.
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
1) Your format for the RAW line is incorrect. Format should read not 2) The # character in the mode, kick and timer lines, will return $null, as there is no channel associated with the RAW command.
|
|
|
|
Joined: Aug 2005
Posts: 1,052
Hoopy frood
|
Hoopy frood
Joined: Aug 2005
Posts: 1,052 |
This code kline not working on *@:text:*:#:{
var %n = $nick,%c = #,%t = $strip($1-)
if (*www.?.com iswm %t) || (*http://* iswm %t) || (*www.?.org* iswm %t) || (*www.?.net* iswm %t) || (www?.co.uk* iswm %t) || (www?.co.au* iswm %t) {
if (%n !isop %c) && (%n !isvoice %c) {
.kill %n Auto-kill: dont post url
.kline $address(%n,2) Stop Spamming In Our Server
echo $active $timestamp (4Warn) Punishing $9 with kline for advertise with $1-
onotice #wiredreality (#wiredreality/Ops) Kline triggered on $9 for Advertising $1- nickname : $nick in room $chan
:end
}
}
}
#1 On your ON TEXT event you made an OP check to start off therefore #1 the script if written correctly would work only if the user who is op advertises. Else remove the @ event leave it has ON *:TEXT:*:#:{ #2 You are using the incorrect WILDCARD term searches for mIRC but then again you are making a match on a $1- event which the wildcard match "ISWM" will only search the first Word therefore if the advertisement is PLEASE VISIT www.MIRC.COM your Wildcard Match will not work #3 :END is useless unless you need to go to your code later on during a script example ON *:TEXT:*:#:{ if ($1 == Hi) { GOTO :B } else { halt } :B echo -a You have been routed to B } if Hi is said it presents you the echo message else it halts/stops So now moving on since we talked about thw isWM searches I would recommond $wildtok events in this scenario here is a compilation
on *:text:*:#:{
var %n = $nick, %c = #, %t = $strip($1-)
if ($wildtok(%t,*www.*,1,32)) || ($wildtok(%t,*.net*,1,32)) || ($wildtok(%t,*.org*,1,32)) || ($wildtok(%t,*.co.uk*,1,32)) || ($wildtok(%t,*.co.au*,1,32)) {
if (%n !isop %c) && (%n !isvoice %c) {
.kill %n Auto-kill: dont post url
.kline $address(%n,2) Stop Spamming In Our Server
echo -at (4Warn) Punishing $9 with kline for advertise with $1-
onotice #wiredreality (#wiredreality/Ops) Kline triggered on $9 for Advertising $1- nickname : $nick in room $chan
}
}
}
voila Regex would be idealistic here however I don't know how to use it
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
|
|
|
|
Joined: Aug 2005
Posts: 1,052
Hoopy frood
|
Hoopy frood
Joined: Aug 2005
Posts: 1,052 |
klines and kills, for UnrealIRCd, require IRCops status. If the client running the code doesn't have this access, then it won't work. His code had a few errors
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
#1 On your ON TEXT event you made an OP check to start off therefore #1 the script if written correctly would work only if the user who is op advertises. Else remove the @ event leave it has ON *:TEXT:*:#:{ Actually the @ event prefix checks if you are opped, not whoever triggered the event.
|
|
|
|
Joined: Aug 2005
Posts: 1,052
Hoopy frood
|
Hoopy frood
Joined: Aug 2005
Posts: 1,052 |
#1 On your ON TEXT event you made an OP check to start off therefore #1 the script if written correctly would work only if the user who is op advertises. Else remove the @ event leave it has ON *:TEXT:*:#:{ Actually the @ event prefix checks if you are opped, not whoever triggered the event. My bad its true because ME event can be used as well
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
Everything mentioned since the OP's first post here can and/or will cause the script to fail.
|
|
|
|
Joined: Jun 2006
Posts: 508
Fjord artisan
|
Fjord artisan
Joined: Jun 2006
Posts: 508 |
Here, you need to change ($2 ison #wiredreality) if you wanted them to be banned from a different channel. raw $301:/\bsex\b/Si:{
if ($2 ison #wiredreality) && ($me isop $v2) { ban -ku60 $v2 $address($2,3) You To smart But I'm more smart }
}
|
|
|
|
|