summaryrefslogtreecommitdiff
path: root/modules/commands/os_svs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/os_svs.cpp')
-rw-r--r--modules/commands/os_svs.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/commands/os_svs.cpp b/modules/commands/os_svs.cpp
index 9fb1d63c3..4e9a31e6b 100644
--- a/modules/commands/os_svs.cpp
+++ b/modules/commands/os_svs.cpp
@@ -9,8 +9,6 @@
* Based on the original code of Services by Andy Church.
*/
-/*************************************************************************/
-
#include "module.h"
class CommandOSSVSNick : public Command
@@ -101,7 +99,7 @@ class CommandOSSVSJoin : public Command
source.Reply(_("\002%s\002 is already in \002%s\002."), target->nick.c_str(), c->name.c_str());
else
{
- IRCD->SendSVSJoin(OperServ, target, params[1], "");
+ IRCD->SendSVSJoin(source.service, target, params[1], "");
Log(LOG_ADMIN, source, this) << "to force " << target->nick << " to join " << params[1];
source.Reply(_("\002%s\002 has been joined to \002%s\002."), target->nick.c_str(), params[1].c_str());
}
@@ -145,7 +143,7 @@ class CommandOSSVSPart : public Command
source.Reply(_("\002%s\002 is not in \002%s\002."), target->nick.c_str(), c->name.c_str());
else
{
- IRCD->SendSVSPart(OperServ, target, params[1], "");
+ IRCD->SendSVSPart(source.service, target, params[1], "");
Log(LOG_ADMIN, source, this) << "to force " << target->nick << " to part " << c->name;
source.Reply(_("\002%s\002 has been parted from \002%s\002."), target->nick.c_str(), c->name.c_str());
}