From 790ec31fb8fb3d9307df7a563d4c59901cede78e Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 8 Sep 2006 14:27:39 +0000 Subject: Add similar printf format fix to namesx git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5160 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_namesx.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src') 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; } }; -- cgit v1.2.3