开发者

How do I get the network name from an IRC server?

开发者 https://www.devze.com 2023-01-19 02:31 出处:网络
I didn\'t think this was 开发者_开发问答possible, but mIRC can get the name of a network, even if it is not specified by the user in the server list. I tried using a packet sniffer to see if perhaps t

I didn't think this was 开发者_开发问答possible, but mIRC can get the name of a network, even if it is not specified by the user in the server list. I tried using a packet sniffer to see if perhaps there was a message sent on connect that sends the network's name, but I didn't see anything.

The network name is needed to display to the user as well as determine if multiple servers are part of the same network. I'm hoping this is a problem someone else has already solved.


On connect (or receipt of the VERSION protocol command), the server may send back one or more 005 numerics.

These numerics carry multiple Name=Value pairs, one of which may be NETWORK=<network name>.


Take a look at http://www.irc.org/tech_docs/draft-brocklesby-irc-isupport-03.txt


I don't see anything in RFC 1459 about it. Now, that doesn't mean a server here and there doesn't implement a particular command to get this information, but I don't think there is a reliable way to do so.


You only have to type the following into your irc client

//echo $network

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号