Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Variables for Nickname/Alternative in Connect Dialog

1 view
Skip to first unread message

Adeel Zafar Soomro

unread,
Dec 7, 2001, 2:17:58 PM12/7/01
to
I cannot find variables that return nickname and alternative nickname
fields in the connect dialog. I did find variables that return full
name ($fullname) and email address ($emailaddr), but I've had no luck
with the rest.

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

eXonyte

unread,
Dec 7, 2001, 10:02:03 PM12/7/01
to

"Adeel Zafar Soomro" <newsr...@soomro.org> wrote in message
news:54f4697.01120...@posting.google.com...

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

borgx

unread,
Dec 7, 2001, 10:29:23 PM12/7/01
to
try

main nick: $me
atunitive nick: $anick

--

-borgx

/* -- */

"Adeel Zafar Soomro" <newsr...@soomro.org> wrote in message
news:54f4697.01120...@posting.google.com...

Adeel Zafar Soomro

unread,
Dec 8, 2001, 3:48:23 PM12/8/01
to
Thanks guys. $anick works for the alternative nickname (thanks
eXonyte and borgx), and $readini($mircini,mirc,nick) -- aliased as
$mnick -- works for the main nickname (thanks eXonyte).

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

0 new messages