diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-08 14:27:39 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-08 14:27:39 +0000 |
commit | 790ec31fb8fb3d9307df7a563d4c59901cede78e (patch) | |
tree | 1be79a2041fe80a7b09639838bd551f55e4109e5 /src | |
parent | a4dd4228c08fd1bf06ad0d6484c2ccb2526348d7 (diff) |
Add similar printf format fix to namesx
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5160 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_namesx.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp index 267c8f468..e55e436ce 100644 --- a/src/modules/m_namesx.cpp +++ b/src/modules/m_namesx.cpp @@ -65,7 +65,6 @@ class ModuleNamesX : public Module { if ((pcnt) && (!strcasecmp(parameters[0],"NAMESX"))) { - ServerInstance->Log(DEBUG,"Setting this user as NAMESX capable"); user->Extend("NAMESX",dummy); return 1; } @@ -75,10 +74,8 @@ class ModuleNamesX : public Module virtual int OnUserList(userrec* user, chanrec* Ptr) { - ServerInstance->Log(DEBUG,"NAMESX called for %s %s",user->nick,Ptr->name); if (user->GetExt("NAMESX")) { - ServerInstance->Log(DEBUG,"Using NAMESX user list code"); char list[MAXBUF]; size_t dlen, curlen; dlen = curlen = snprintf(list,MAXBUF,"353 %s = %s :", user->nick, Ptr->name); @@ -99,8 +96,7 @@ class ModuleNamesX : public Module if (curlen > (480-NICKMAX)) { /* list overflowed into multiple numerics */ - ServerInstance->Log(DEBUG,"Send list 1"); - user->WriteServ(list); + user->WriteServ(std::string(list)); /* reset our lengths */ dlen = curlen = snprintf(list,MAXBUF,"353 %s = %s :", user->nick, Ptr->name); ptr = list + dlen; @@ -111,15 +107,11 @@ class ModuleNamesX : public Module /* if whats left in the list isnt empty, send it */ if (numusers) { - ServerInstance->Log(DEBUG,"Send list 2"); - user->WriteServ(list); + user->WriteServ(std::string(list)); } user->WriteServ("366 %s %s :End of /NAMES list.", user->nick, Ptr->name); - ServerInstance->Log(DEBUG,"Returning 1"); return 1; } - - ServerInstance->Log(DEBUG,"Returning 0"); return 0; } }; |