如何从 IRC 服务器获取网络名称?
我认为这是不可能的,但是 mIRC 可以获取网络的名称,即使用户没有在服务器列表中指定该名称。我尝试使用数据包嗅探器来查看连接上是否发送了一条发送网络名称的消息,但我没有看到任何内容。
需要向用户显示网络名称并确定多个服务器是否属于同一网络。我希望这是其他人已经解决的问题。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
连接时(或收到
VERSION
协议命令),服务器可能会发回一个或多个005
数字。这些数字携带多个
Name=Value
对,其中之一可以是NETWORK=<网络名称>
。On connect (or receipt of the
VERSION
protocol command), the server may send back one or more005
numerics.These numerics carry multiple
Name=Value
pairs, one of which may beNETWORK=<network name>
.看看 http://www.irc.org/tech_docs /draft-brocklesby-irc-isupport-03.txt
Take a look at http://www.irc.org/tech_docs/draft-brocklesby-irc-isupport-03.txt
我在 RFC 1459 中没有看到任何有关它的内容。现在,这并不意味着这里和那里的服务器没有实现特定的命令来获取此信息,但我认为没有可靠的方法来做到这一点。
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.
您只需在 irc 客户端中输入以下内容
//echo $network
You only have to type the following into your irc client
//echo $network