mIRC Home    About    Download    Register    News    Help

Print Thread
#265003 12/02/19 03:42 PM
Joined: Jan 2019
Posts: 18
C
Pikka bird
OP Offline
Pikka bird
C
Joined: Jan 2019
Posts: 18
Hi, is it possible to send a notice to a hostmask/ip address insteed of a nick?
The problem is that i want to notice some results from a script to another person on the server but sometimes the nick is taken by someone else (no nickserv around) so the notices arriving to the wrong person. Thank you.

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
Not unless they're in a shared channel with you. You should be verifying the correct address, even if there is a nickserv, since people don't always have an enforcement enabled which prevents someone else from camping on the nick.

If you know the correct address, and they're in your IAL, you can find the nick that way.

//echo -a $ial(*@*irccloud*,0) shows how many nicks match that address mask, and //echo -a $ial(*@*irccloud*,1).nick shows the 1st matching nick. The ial seems to sort by the 1st letter of their nick.

Joined: Jan 2019
Posts: 18
C
Pikka bird
OP Offline
Pikka bird
C
Joined: Jan 2019
Posts: 18
That is very nifty, works perfect for what I want maroon, thank you for the help, very clear now!

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
Oops, I forgot to mention something important about $ial, for the benefit of others reading the thread. mIRC doesn't offer the option to fill the ial with the members of channels after you join them. "hint hint"

First, you should make sure the IAL is turned on, which it is by default unless you turn it off. the "/ial" command without any parameter shows the on/off state, and you can use "/ial on" to turn it on if it's not already there.

By default, the $ial contains only the nicks of people in channels you're in. So even yourself isn't in your $ial list until you join a channel. Once someone in a channel does something, like joins, sends a message to channel, changes nick, etc - that nick is added to your IAL. But everyone idling in channel isn't in your IAL until you do something which causes them to be added. One thing you can do is to /whois them, but that would be a pain to do that for everyone else.

What you can do is "/who #channelname", which adds everyone who's not already there. It also does things for people already in your IAL list, such as updating their status as being marked as /away or not. You'd need to be careful about having a script which does the /who #channel shortly after you join, because if you join several large channels immediately after joining the network, the barrage of server replies can cause you to be flooded off as soon as you join, and would repeat each time you reconnected and rejoined those channels.

Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
You're suggested to use '/ialfill #channelname' instead of '/who #channelname' to grab the user information of a channel that you've joined or are opped in. It uses the best possible method for the network you're on.


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

Link Copied to Clipboard