mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Well, I stayed connected to that network for nearly 4 hours and didn't see a single message of that type (whether it be via notice, snotice, text, action, wallops, or anything else that I would've been able to detect) the whole time I was there.

Joined: Jan 2007
Posts: 22
D
Ameglian cow
Offline
Ameglian cow
D
Joined: Jan 2007
Posts: 22
Sorry for reviving old post, but, I have same problem now!
I want to change some of server notices to mine, as I am ircop's, and I'm creating script, that would help me, and some other ircop's. If I simplify my code:
Code:
on *:SNOTICE:*: {
 echo -s Server notice halted
 halt
}

But that halt isn't going to work frown frown frown
Is this some kind of mIRC bug?
If so, I'm gonna write to Khaled or that other one... about this bug... Please, who have 5 minutes to spend, test this code, maybe works for you, then we will now, that this isn't bug but something else...

PS: From mIRC Help file:
Quote:

on SNOTICE

The on SNOTICE event triggers when you receive a server notice.

Format: on <level>:SNOTICE:<matchtext>:<commands>
Example: on 1:SNOTICE:*client connecting*:/halt

For an explanation of matchtext see the on TEXT event.

Examples

on 1:SNOTICE:*hack*:/splay hack.wav

This triggers when a server notice contains the word hack.

Note:
You can prevent the default server notice from being displayed by using /halt.

Last edited by Deele; 30/04/07 03:05 PM.

Deele /SCRIPTWORKS/

LV | ENG | RU
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
Try haltdef instead...

Code:
on ^*:SNOTICE:*: {
 echo -s Server notice halted
 haltdef
}


~ Edit ~

hmmm .. I just noticed the help file says use /halt. Wonder why that is.

Last edited by RoCk; 30/04/07 02:49 PM.
Joined: Jan 2007
Posts: 22
D
Ameglian cow
Offline
Ameglian cow
D
Joined: Jan 2007
Posts: 22
Okay, I found, it works... To let EVENT catch original event, and halt text, you need to use ^ before EVENT level... Like this:
Code:
on ^*:SNOTICE:*: {
 echo -s Server notice halted
 halt
}

Works!
Solved...
grin


Deele /SCRIPTWORKS/

LV | ENG | RU
Page 2 of 2 1 2

Link Copied to Clipboard