martynsmith / node-irc

NodeJS IRC client library
GNU General Public License v3.0
1.32k stars 425 forks source link

How to get the Server Name #549

Closed madprops closed 4 years ago

madprops commented 5 years ago

I can't find a way to get the 'real server name' of a server. For instance "Freenode". Nothing regarding it comes up in the registered event message and checking the documentation I can't find nothing. Where can I look for it? Thanks.

wilsonmfg commented 4 years ago

IRC doesn't have such a thing. you might be able to parse it from the MOTD or one of the other raw event data

madprops commented 4 years ago

Makes sense. Now that I think about it the user would store the name on the server settings anyway. Thanks.