mIRC Homepage
Posted By: 12izla Dealing with strange server output. - 06/11/05 02:17 AM
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-
 
Posted By: schaefer31 Re: Dealing with strange server output. - 06/11/05 03:21 AM
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.
© mIRC Discussion Forums