diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-07 19:50:27 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-07 19:50:27 +0000 |
commit | 94706c2d812c04c783ecf441acc6c8d7b786aadb (patch) | |
tree | 046d2caafa4a9a8f660096a8677d5724145ccdf4 | |
parent | 0ddcc48ec76883de3561755343b09a24eac912e1 (diff) |
Compilation fixes (UNTESTED)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2255 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_swhois.cpp | 7 |
1 files 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); } } } |