mIRC Home    About    Download    Register    News    Help

Print Thread
#56565 21/10/03 01:58 PM
Joined: Jan 2003
Posts: 119
A
AKO Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2003
Posts: 119
I request a new event prefix, in this case "if only I trigger this event". There are a number of workarounds, of course.

However I've noted in the help file with the ! prefix, which does something similar but is the exact opposite.

A few of the workarounds I know are:

set yourself a user level above 1, and then use that user level to trigger events.

There's also to watch it constantly and have the event trigger and check if ($nick == $me) { }

But that just doesn't seem efficient.

#56566 21/10/03 02:34 PM
Joined: Oct 2003
Posts: 53
W
Babel fish
Offline
Babel fish
W
Joined: Oct 2003
Posts: 53
try the undocumented me prefix

examples
on me:*:JOIN:#:
on me:*:OP:#:

I think this will only not work with
ON TEXT, ON ACTION & ON NOTICE.

Quote from Khaled ...
"I don't think I ever added it to the help file... one of those quirky prefixes that I had planned to remove at some point but which seems to have survived all these years. The last reference to it in versions.txt was for mIRC v4.7"

Last edited by WhoJoeDaddy; 21/10/03 02:41 PM.
#56567 21/10/03 02:43 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Works with ON NOTICE. Won't work with ON TEXT/ACTION since they're reserved to other people.


* cold edits his posts 24/7
#56568 21/10/03 02:54 PM
Joined: Oct 2003
Posts: 53
W
Babel fish
Offline
Babel fish
W
Joined: Oct 2003
Posts: 53
Actually, all three worked as private & none worked public.
Code:
on me:*:TEXT:*:*:echo -a $me TEXT
on me:*:ACTION:*:*:echo -a $me ACTION
on me:*:NOTICE:*:*:echo -a $me NOTICE

//msg $me test
[09:53] -> *RoCk* test
RoCk TEXT

//describe $me test
[09:53] -> *RoCk* test
RoCk ACTION

//notice $me test
[09:53] -> -RoCk- test
RoCk NOTICE

Last edited by WhoJoeDaddy; 21/10/03 02:56 PM.
#56569 21/10/03 03:00 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Weird behaviour, thanks, I assumed it wouldn't work privately as well. However, I did test ON NOTICE privately, which worked.. I guess it's the habit.


* cold edits his posts 24/7
#56570 21/10/03 03:12 PM
Joined: Jan 2003
Posts: 428
P
Fjord artisan
Offline
Fjord artisan
P
Joined: Jan 2003
Posts: 428
Quote:
try the undocumented me prefix


Yet more evidence that it really IS time to overhaul the documentation - as a paying customer, the need to go through what is essentially a technical file to find any mention of some features is the single most annoying feature of mIRC. mad

PastMaster


IRCnet & DALnet @#travelersinn
:-: IRC for fun and relaxation :-:
#56571 21/10/03 03:33 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Quote:
Weird behaviour, I assumed it wouldn't work privately as well

Why weird? When you private message yourself, the message is in fact being sent back to you, triggering those events. Of course this isn't the case with messages you are sending to a channel.

#56572 21/10/03 03:38 PM
Joined: Oct 2003
Posts: 53
W
Babel fish
Offline
Babel fish
W
Joined: Oct 2003
Posts: 53
Quote:
Of course this isn't the case with channel messages

I've always thought it should be though .. it would be so much nicer to be able to trigger these events myself rather than using ON INPUT

#56573 21/10/03 04:20 PM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
That's why I found it weird, because I thought it was about me being the sender, not necessarily me being the target.


* cold edits his posts 24/7
#56574 21/10/03 05:03 PM
Joined: Jan 2003
Posts: 119
A
AKO Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2003
Posts: 119
lol, figures as to why I can't find it. Nice.

#56575 22/10/03 04:54 AM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
i find it entirly amazing that *normaly* on text won't trigger for yourself (why bot commands wont work) yet you say as soon as you ad "me:" it works? that's "weird"


-KingTomato
#56576 22/10/03 08:24 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
on text works for your own Private messages (to yourself), but not for your own channel messages.

#56577 23/10/03 04:05 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
It doesn't trigger on the message's outbound journey, but triggers when it comes back to you.

the me:*: prefix works *exactly* the same as if ( $nick == $me ), in every event.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#56578 23/10/03 04:46 PM
Joined: Jan 2003
Posts: 119
A
AKO Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2003
Posts: 119
But I assume that on me:*: is faster than checking ALL events with the runtime script?

#56579 23/10/03 05:13 PM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
correct. I would assume this aswell.


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

Link Copied to Clipboard