From 94706c2d812c04c783ecf441acc6c8d7b786aadb Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 7 Dec 2005 19:50:27 +0000 Subject: Compilation fixes (UNTESTED) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2255 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_swhois.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp index 7b3ff4edc..99527cfcb 100644 --- a/src/modules/m_swhois.cpp +++ b/src/modules/m_swhois.cpp @@ -20,6 +20,7 @@ using namespace std; #include "users.h" #include "channels.h" #include "modules.h" +#include "helperfuncs.h" /* $ModDesc: Provides the SWHOIS command which allows setting of arbitary WHOIS lines */ @@ -66,7 +67,7 @@ class ModuleSWhois : public Module if (desc) { std::string* swhois = (std::string*)desc; - WriteServ("320 %s %s :%s",source->nick,dest->nick,desc->c_str()); + WriteServ(source->fd,"320 %s %s :%s",source->nick,dest->nick,swhois->c_str()); } } @@ -81,7 +82,7 @@ class ModuleSWhois : public Module if (extname == "swhois") { // check if this user has an swhois field to send - char* field = dest->GetExt("swhois"); + char* field = user->GetExt("swhois"); if (field) { // get our extdata out with a cast @@ -110,7 +111,7 @@ class ModuleSWhois : public Module if (!dest->GetExt("swhois")) { std::string* text = new std::string(extdata); - target->Extend("swhois",(char*)text); + dest->Extend("swhois",(char*)text); } } } -- cgit v1.2.3