diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-27 11:01:20 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-27 11:01:20 +0000 |
commit | c3f6fdd8a73ec7c8fd73f8a3cbcaa0b9aae234ad (patch) | |
tree | 644539fac2f6a739f35ae196cdc9ca59bec2b077 | |
parent | d2be3310ba2cfb567f2cf0272a086b2961c86d6f (diff) |
Fix obligotary typos
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7870 e03df62e-2008-0410-955e-edbf42e46eb7
-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; |