mIRC Home    About    Download    Register    News    Help

Print Thread
#167512 25/12/06 03:17 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
This will kick text but not !action text any ideal why?

on *:text:*:?: {
if ( %Relay == off ) || ( %Relay == $null ) || ($nick isop #chat) { return }
var %s.chan = #chat
if ($nick !ison %s.chan && $me isop %s.chan) {
var %nick.addr = $mask($fulladdress,2)
var %cnt = $nick(%s.chan,0)
while (%cnt) {
if ($address($nick(%s.chan,%cnt),2) == %nick.addr) {
ban -ku3600 %s.chan $nick(%s.chan,%cnt) 2 Relay Spammer Detected (Opscript 6.0)
}
dec %cnt
}
}
}

Garou #167514 25/12/06 03:45 PM
Joined: Oct 2006
Posts: 166
B
Vogon poet
Offline
Vogon poet
B
Joined: Oct 2006
Posts: 166
use on *:action: instead.


Kind Regards, blink
b1ink #167515 25/12/06 04:00 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
Ok thx but now on text wont work anymore or do I have to use a diff dialog just for text?

Last edited by Garou; 25/12/06 04:05 PM.
Garou #167519 25/12/06 04:42 PM
Joined: Oct 2003
Posts: 313
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 313
Umm. dialog? I see no dialogs there...

A seperate event handler, yes. One for the on texts (which catches normal text sent to the channel) and on for on action (which catches /action, /me and /describe <chan>s)


Sais
Sais #167520 25/12/06 06:35 PM
Joined: Aug 2006
Posts: 469
G
Garou Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Aug 2006
Posts: 469
ok thx.


Link Copied to Clipboard