diff options
-rw-r--r-- | src/helperfuncs.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index d4fef141b..223099c45 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -236,7 +236,7 @@ void InspIRCd::WriteMode(const char* modes, int flags, const char* text, ...) /* Find a user record by nickname and return a pointer to it */ userrec* InspIRCd::FindNick(const std::string &nick) { - if (!nick.empty() && isnumeric(*nick.begin())) + if (!nick.empty() && isdigit(*nick.begin())) return FindUUID(nick); user_hash::iterator iter = clientlist->find(nick); @@ -250,7 +250,7 @@ userrec* InspIRCd::FindNick(const std::string &nick) userrec* InspIRCd::FindNick(const char* nick) { - if (isnumeric(*nick)) + if (isdigit(*nick)) return FindUUID(nick); user_hash::iterator iter = clientlist->find(nick); diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index b2be3386a..7ff67e458 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -655,7 +655,7 @@ void ModuleSpanningTree::RemoteMessage(userrec* user, const char* format, ...) user->WriteServ("NOTICE %s :%s", user->nick, text); else { - params.push_back(user->uid); + params.push_back(user->uuid); params.push_back(std::string("::") + ServerInstance->Config->ServerName + " NOTICE " + user->nick + " :*** From " + ServerInstance->Config->ServerName+ ": " + text); Utils->DoOneToMany(ServerInstance->Config->ServerName, "PUSH", params); @@ -1349,7 +1349,7 @@ void ModuleSpanningTree::OnEvent(Event* event) userrec* a = ServerInstance->FindNick((*params)[0]); if (a) { - *(params)[0] = a->uuid; + (*params)[0] = a->uuid; ourTS = a->age; Utils->DoOneToMany(ServerInstance->Config->ServerName,"MODE",*params); return; |