mIRC Home    About    Download    Register    News    Help

Print Thread
New format of invite message not captured by event #263270 24/06/18 03:15 PM
Joined: Nov 2009
Posts: 295
P
pball Offline OP
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
This is somewhere between a possible bug and a feature suggestion. Someone might even be able to explain why or what this is.

Lately I've been receiving "ChanServ has invited nick to #chan" messages in my server status window. I've been on mirc 7.49 since before this started and haven't changed any scripts either. So my guess is it's something new from the network. I tried blocking that message with the on invite event and noticed that the event did not get that message. I then tried using raw invite and that captured it but I am unable to halt it.

Below is a normal invite from another user and then the message from channelserv saying a user joined the +i channel.

pballz inviting me to channel
<- :pballz!pball@pball.tigre.lives.forever INVITE pball :#chan

pballz joining +i channel
<- :ChanServ!service@rizon.net INVITE pballz #chan


This raw event triggers on that message but it doesn't halt it.
raw invite:*: if ($2 = #chan) { echo -a yay | haltdef }


So this could be a bug since mirc isn't picking up that invite message with the on invite event and it's not allowing it to be halted in the raw event either. Or it could be a feature suggestion if this is something new and previously unaccounted for.


http://scripting.pball.win
My personal site with some scripts I've released.
Re: New format of invite message not captured by event [Re: pball] #263273 25/06/18 07:10 PM
Joined: Feb 2003
Posts: 2,702
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,702
I don't experience the problem you're describing, at least not on the current version of mIRC, 7.52

The On Invite event works whether or not it contains a colon before the channel name, and the default text is haltdef'able.

Also, mIRC never displays INVITE messages that are targeted to some nick that isn't you. The target nickname is different in your two examples (one ends in 'z').

Experiment.

Code:
On ^*:INVITE:#: {
  echo -s INVITED: $nick , $target , $chan
  haltdef
}


Code:
/parseline -itqp :pballz!pball@pball.tigre.lives.forever INVITE pball :#chan

/parseline -itqp :ChanServ!service@rizon.net INVITE pballz #chan

//parseline -itqp :ChanServ!service@rizon.net INVITE $me #chan


You may have a custom theme script that makes On Invite messages pretty, and you forgot to turn it off.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: New format of invite message not captured by event [Re: Raccoon] #263274 25/06/18 09:08 PM
Joined: Nov 2009
Posts: 295
P
pball Offline OP
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Nov 2009
Posts: 295
I just fired up a clean copy of 7.52, joined a +i channel on Rizon, and then had another person do "/cs invite #channel" and then chanserv sends the two following messages to myself.

<- :ChanServ!service@rizon.net NOTICE me :ChanServ is inviting othernick to #channel.
<- :ChanServ!service@rizon.net INVITE othernick #channel

This only seems to be happening on Rizon as far as my testing goes.

The on invite code you have in your post does not catch the second line above and mirc displays it as "ChanServ has invited othernick to #channel"


http://scripting.pball.win
My personal site with some scripts I've released.
Re: New format of invite message not captured by event [Re: pball] #263275 26/06/18 01:35 AM
Joined: Feb 2003
Posts: 2,702
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,702
Then everything is fine, good, and right with the world.

You see the NOTICE from ChanServ, as you should.

You do not see the somebody-else's INVITE, because mIRC doesn't normally display them. Which seems to be the behavior you desire, too.

If you want to hide the NOTICE coming from ChanServ, then you will have to haltdef the On Notice event.

I don't understand why my On Invite code doesn't trigger for you, because it does trigger for me. But it seems moot at this point, because you don't want to see anything anyway.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!