]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_who.cpp
Reject client-to-client tags with no name.
[user/henk/code/inspircd.git] / src / coremods / core_who.cpp
index 132f8bc1e29d5d2af8396ab3310a3b0a7c3d011c..bf00b741f64d2ceb339d8e28667bbcb5c483fa60 100644 (file)
@@ -143,7 +143,7 @@ class CommandWho : public SplitCommand
                , whoevprov(parent, "event/who")
        {
                allow_empty_last_param = false;
-               syntax = "<server>|<nickname>|<channel>|<realname>|<host>|0 [[Aafhilmnoprstux][%acdfhilnorstu] <server>|<nickname>|<channel>|<realname>|<host>|0]";
+               syntax = "<server>|<nick>|<channel>|<realname>|<host>|0 [[Aafhilmnoprstux][%acdfhilnorstu] <server>|<nick>|<channel>|<realname>|<host>|0]";
        }
 
        /** Sends a WHO reply to a user. */
@@ -274,7 +274,7 @@ bool CommandWho::MatchUser(LocalUser* source, User* user, WhoData& data)
                        long port;
                        while ((port = portrange.GetToken()))
                        {
-                               if (port == lu->GetServerPort())
+                               if (port == lu->server_sa.port())
                                {
                                        match = true;
                                        break;