summaryrefslogtreecommitdiff
path: root/src/operserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/operserv.c')
-rw-r--r--src/operserv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/operserv.c b/src/operserv.c
index d2711aaec..18b98785e 100644
--- a/src/operserv.c
+++ b/src/operserv.c
@@ -128,7 +128,7 @@ void operserv(User * u, char *buf)
const char *cmd;
const char *s;
- alog("%s: %s: %s", Config.s_OperServ, u->nick, buf);
+ alog("%s: %s: %s", Config.s_OperServ, u->nick.c_str(), buf);
cmd = strtok(buf, " ");
if (!cmd) {
@@ -137,7 +137,7 @@ void operserv(User * u, char *buf)
if (!(s = strtok(NULL, ""))) {
s = "";
}
- ircdproto->SendCTCP(findbot(Config.s_OperServ), u->nick, "PING %s", s);
+ ircdproto->SendCTCP(findbot(Config.s_OperServ), u->nick.c_str(), "PING %s", s);
} else {
mod_run_cmd(Config.s_OperServ, u, OPERSERV, cmd);
}