mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2005
Posts: 6
1
12izla Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
1
Joined: Nov 2005
Posts: 6
I have a swearkick script that performs a devoice action on TEXT events. it works as it should in any normal IRC server. My problem is i am connecting to a non standard game server and the /me output is causing me problems with the ACTION output. this is allowing the /me **** to bypass the script. I've asked the server coder to edit the servers output but he is a busy man wink

This is the server output.
[21:05:21] [nukeyouup:#Lob_41_0 ACTIONwho] the **** is tyler?

This is a normal server output.
[21:05:21] [nukeyouup:#Lob_41_0 ACTION] who the **** is tyler?
this is my code.
Code:
 ON *:TEXT:*:#: if ($nick isop $chan) { | halt } | if ($nick isvo $chan) { | halt } | elseif ($me isop $chan) swearcheck $nick $chan $1-
ON *:ACTION:*:#: if ($nick isop $chan) { | halt } | if ($nick isvo $chan) { | halt } | elseif ($me isop $chan) swearcheck $nick $chan $1-
 

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Why make all those checks? It's a lot easier to do this

Code:
ON @*:TEXT:*:#:{
  if ($nick isreg $chan) { swearcheck $nick $chan $1- }
}

ON @*:ACTION:*:#:{
  if ($nick isreg $chan) { swearcheck $nick $chan $1- }
}


The @ prefix means it will not trigger unless you (or the person running the script) are opped.

isreg will make it trigger only if the user is not voiced or opped.


Link Copied to Clipboard