|
Joined: Nov 2004
Posts: 842
Hoopy frood
|
OP
Hoopy frood
Joined: Nov 2004
Posts: 842 |
I'm surprised this hasn't been suggested before, (Well, it might of been, but search shows no results for "on KILL".) but a simple on KILL function (Whatever it is?) which triggers once you've been killed from a network. I know it's possible with debugging and signalling, but all you'd need to do is check for: [17:33:21] <- :*.ForTheGamers.Org KILL Jigsy :*.ForTheGamers.Org (test kill)
Comments/flames appreciated.
What do you do at the end of the world? Are you busy? Will you save us?
|
|
|
|
Joined: Jan 2003
Posts: 2,523
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 2,523 |
Raw events were designed exactly for this purpose: to catch events not supported natively. So something like this should work: Edit: just found a log on the net of a conversation I had with Saturn some time ago, where he showed that raw wouldn't catch a KILL message. I'm not sure if this is still the case in 6.21 but if it is, it is a bug.
Edit 2: Saturn confirmed that it still doesn't work
Edit 3: ..and here's why. I guess I should have used the search feature
Last edited by qwerty; 13/05/07 05:49 PM.
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
|
|
|
|
Joined: Mar 2006
Posts: 395
Pan-dimensional mouse
|
Pan-dimensional mouse
Joined: Mar 2006
Posts: 395 |
This is in fact by design, mIRC does not trigger a KILL event when you are killed. Also, in some cases mIRC will not attempt a reconnection after a kill, depending on the type of kill. I can not understand why the KILL would not be allowed by Khaled to be scripted, But I doubt we can change his mind. I would very much so like to see this happen in the NEAR future. However, A work around would be to either change to using a socket proxy (then send signal if $2 == KILL) or use the debug alias... Allthough I won't go into detail on how to do them, I'm sure you can find something on the boards.
[02:16] * Titanic has quit IRC (Excess Flood)
|
|
|
|
Joined: Feb 2005
Posts: 342
Fjord artisan
|
Fjord artisan
Joined: Feb 2005
Posts: 342 |
"Kill" doesn't have it's own event because, as far as I know, the way a "Kill" happens is variable. It's integrated into the quit message.
UnrealIRCd for example may use: **** Quit: SomeNick (ident@host.com) [name.of.server.com] Local kill by SOME_OPER (KILL_MESSAGE)
While DALnet will just use: **** Quit: SomeNick (ident@host.com) Killed blahblahblah
That's just my guess.
Edit: I misunderstood what was being asked.
KILL just triggers for the person being killed. I was thinking someone wanted a way to script their kills seperately from their quits, when it happens to other people.
Anyway, yeah.
Last edited by Rand; 25/05/07 12:26 AM.
|
|
|
|
Joined: Mar 2007
Posts: 218
Fjord artisan
|
Fjord artisan
Joined: Mar 2007
Posts: 218 |
Also, we're on IRCX servers, the message gets relayed to the status window, i'm 99.9% sure that the on kill event was scriptable in older versions. But i think you should at least be able to script it again.
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
if the message is showing, then a script can be written to match the message. The fact that it's showing in the status window simply means that the event will have to monitor all possible locatons, ie: use the * for the location in an ON TEXT or ON NOTICE events. As this is probably coming from the server, I suspect using the ON SNOTICE event would be the proper one.
|
|
|
|
Joined: Apr 2004
Posts: 871
Hoopy frood
|
Hoopy frood
Joined: Apr 2004
Posts: 871 |
if the message is showing, then a script can be written to match the message. Now you've done it, the misinformation in this latest post of yours forces me to use bold. There is NO event triggered for incoming 'KILL' messages. AT ALL. And yes, this should really be fixed, if only by making such messages trigger 'raw KILL'.
Saturn, QuakeNet staff
|
|
|
|
Joined: Dec 2002
Posts: 2,031
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,031 |
There should be a KILL event. In the meantime, to catch it could you not use the ERROR event? It looks like someone needs to take a pill.
Last edited by RoCk; 25/05/07 04:18 PM.
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
I must disagree with you, Sat, since I stated the condition if the message is showing in my post that must be matched in order for a script to work. If that message, irrelevant as to the method of sending the message, does not exist to the client, then a script cannot be used. As an IRCop on 2 networks, I have the ability to see kill notices sent by the server, and therefore, I am able to use a script in relation to those snotices, using the ON SNOTICE event.
|
|
|
|
Joined: Apr 2004
Posts: 871
Hoopy frood
|
Hoopy frood
Joined: Apr 2004
Posts: 871 |
Yes, mIRC shows the KILL message. It looks like this in the status window:
* bar killed by foo (reason here)
The point of this thread was that no corresponding event triggers when one comes in. Hence, no script can be written to act on such messages.
All of this is completely unrelated to server-generated NOTICE messages (which do trigger an event, that is, the "on SNOTICE" event), so I'm not sure why you have brought that up twice now.
Saturn, QuakeNet staff
|
|
|
|
Joined: Mar 2007
Posts: 218
Fjord artisan
|
Fjord artisan
Joined: Mar 2007
Posts: 218 |
As an IRCop on 2 networks You stated in another thread that the 2 networks were unrealircd, those are NOT ircx.
|
|
|
|
|