Perhaps I've overlooked some help section or the other.
I need these variables in order to make a ``sticky nickname'' script
-- i.e., if, on connect, mIRC detects that the current nickname ($me)
is different from the dialog nickname or dialog alternative, it adds
these to the notify list and waits for these to become available, at
which time it switches the nickname to dialog nickname or dialog
alternative as the situation may be.
Perhaps there is an alternative method to accomplish what I'm trying
to do here. One thing I could think of was to use a separate variable
to store the sticky nickname, but it would have to be
updated/maintained by the user (especially if he/she changes the
dialog nickname/alternative frequently, and would want to keep those
nicknames sticky).
Please advise. Thanks.
-Checkie
I'm not sure about an identifier specifically for the main nickname, but you
could use $readini($mircini,mirc,nick) instead, or maybe make a $mnick
custom identifier:
alias mnick return $readini($mircini,mirc,nick)
For the alternative nickname, use $anick
-eXonyte
main nick: $me
atunitive nick: $anick
--
-borgx
/* -- */
"Adeel Zafar Soomro" <newsr...@soomro.org> wrote in message
news:54f4697.01120...@posting.google.com...
Couple of things in the passing that I noticed after the suggestions
were made:
1. $mnick works because each time the main nickname is
changed/updated (either through the connect dialog or through the
/nick command), the mirc.ini file is updated. $me returns the current
nickname, and not the main nickname, and these two things could be
very different. =) Interestingly enough, I found an example for
$readini() identifier in the mIRC help file that tells you EXACTLY how
to get the main nickname from the mirc.ini file. Guess I should have
paid more attention while pouring through those examples. =)
2. Through some web searches, I learnt that mIRC 5.8 is where the
variables $anick AS WELL AS $mnick were introduced. It seems that by
the time mIRC 5.9 rolled out, they dropped $mnick and kept $anick as a
permanent fixture. Wonder why the discrimination....
Thanks again for your help.
-Checkie