mIRC Homepage
Posted By: mIRCusr How to block action text ... ?! - 13/08/03 02:34 PM
Hi

I wanna block / ignore action text. Is there a chance to do this?! I found settings to ''hide'' / ''show at'' notices, querys, whois and so on ... but nothing for action text.

If i could do ... i wanna block / ignore only away-msgs. I hate auto generated away-msgs @ all full / half hour from same nick ... but i don't want to block / ignore the user.

''* I'm away since 1 hour''
''* I'm away since 2 hours''
''* I'm away since 3 hours''
''* I'm away since 4 hours'' ...
Posted By: sparta Re: How to block action text ... ?! - 13/08/03 02:41 PM
on ^1:ACTION: { halt } <<-- halt all actions

on ^1:ACTION:: if (away isin $1-) { halt } <<-- halt actions with AWAY in them

i think this is what you looking for? smirk
Posted By: pheonix Re: How to block action text ... ?! - 13/08/03 02:42 PM
on ^*:ACTION:*:#:{
if (*away* iswm $1-) { haltdef }
}
that will ignore any action message containing: away
Posted By: Collective Re: How to block action text ... ?! - 13/08/03 02:43 PM
You used the wrong syntax for on ACTION, neither of those work..
Posted By: sparta Re: How to block action text ... ?! - 13/08/03 02:45 PM
ok.. wink
Posted By: mIRCusr Re: How to block action text ... ?! - 13/08/03 03:03 PM
I tested your code and the code from the other replyer ... but in chan the line is printed nevertheless.

Somebody else another idea how to block / ignore action-msgs?
Posted By: pheonix Re: How to block action text ... ?! - 13/08/03 03:04 PM
mine wont echo the line as long as the persons away message has "away" somewhere in the line, if it does: you have another script interfering with it.
Posted By: mIRCusr Re: How to block action text ... ?! - 13/08/03 03:08 PM
I've copied your code 1:1 ... but it doesn't work. The line is still printed in channel.

I've added the beep-command ... and this works fine ... at all action text within away sounds a beep ... but the line is not blocked in channel.
Posted By: sparta Re: How to block action text ... ?! - 13/08/03 03:09 PM
try do the "haltdef" to only "halt" one time and try.. smirk
Posted By: mIRCusr Re: How to block action text ... ?! - 13/08/03 03:56 PM
sorry ... it doesn't work. I've tested it also with haltdef.

=====

on *:ACTION:*:*: {
if ( ( away isin $1- ) || ( wolfenstein isin $1- ) || ( playing isin $1- ) ) {
/aline -p 3 @Status HALT $network $chan $nick $1-
beep
halt
}
else {
$freundesuchen( a , $chan , $nick , $address( $nick , 3 ) )
}
}

=====

#chan:

[17:44] * @nick away rockt die welt
[17:44] * @nick away rockt die welt
[17:44] * @nick away rockt die welt

=====

@Status: (test)

HALT network #chan nick away rockt die welt
HALT network #chan nick away rockt die welt
HALT network #chan nick away rockt die welt

=====
Posted By: Collective Re: How to block action text ... ?! - 13/08/03 04:01 PM
Try on ^*:ACTION:*:*: { instead of on *:ACTION:*:*: {
Posted By: mIRCusr Re: How to block action text ... ?! - 13/08/03 04:22 PM
YES YES YES ... GREAT

thank you very much!!! smile


why ^* or ^1 ?? in on TEXT-help there's none ^.
Posted By: Collective Re: How to block action text ... ?! - 13/08/03 04:23 PM
/help Halting Default Text
Posted By: Krejt Re: How to block action text ... ?! - 13/08/03 04:52 PM
Brrrr....... what ugly if (bla isin $1-) code are you all writing.... Using the match text really works a lot faster and delivers nice and simple events!

on ^1:ACTION:*away*:#:/halt
© mIRC Discussion Forums