summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-22 16:02:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-22 16:02:13 +0000
commit999f4d2f143bf730f0e346921a8fa687936a79cf (patch)
tree62cdbc57db292ac6f0c4bd15be5fc7864a0a2b47 /src
parenta77e13baaae1d1bf36f1ef94fe0cbd450839b05e (diff)
Merge swhois patch from jackmcbarn
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9931 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_swhois.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp
index df959147a..dcef9196d 100644
--- a/src/modules/m_swhois.cpp
+++ b/src/modules/m_swhois.cpp
@@ -46,7 +46,7 @@ class CommandSwhois : public Command
// We already had it set...
if (!ServerInstance->ULine(user->server))
// Ulines set SWHOISes silently
- ServerInstance->SNO->WriteToSnoMask('A', "%s used SWHOIS to set %s's extra whois from '%s' to '%s'", user->nick.c_str(), dest->nick.c_str(), text->c_str(), parameters[0].c_str());
+ ServerInstance->SNO->WriteToSnoMask('A', "%s used SWHOIS to set %s's extra whois from '%s' to '%s'", user->nick.c_str(), dest->nick.c_str(), text->c_str(), parameters[1].c_str());
dest->Shrink("swhois");
delete text;
@@ -54,10 +54,10 @@ class CommandSwhois : public Command
else if (!ServerInstance->ULine(user->server))
{
// Ulines set SWHOISes silently
- ServerInstance->SNO->WriteToSnoMask('A', "%s used SWHOIS to set %s's extra whois to '%s'", user->nick.c_str(), dest->nick.c_str(), parameters[0].c_str());
+ ServerInstance->SNO->WriteToSnoMask('A', "%s used SWHOIS to set %s's extra whois to '%s'", user->nick.c_str(), dest->nick.c_str(), parameters[1].c_str());
}
- text = new std::string(parameters[0]);
+ text = new std::string(parameters[1]);
dest->Extend("swhois", text);
/* Bug #376 - feature request -