summaryrefslogtreecommitdiff
path: root/src/botserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/botserv.c')
-rw-r--r--src/botserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/botserv.c b/src/botserv.c
index e56e75d40..7c1657187 100644
--- a/src/botserv.c
+++ b/src/botserv.c
@@ -348,7 +348,7 @@ void botchanmsgs(User * u, ChannelInfo * ci, char *buf)
if (BSGentleBWReason)
bot_kick(ci, u, BOT_REASON_BADWORD_GENTLE);
else
- bot_kick(ci, u, BOT_REASON_BADWORD, bw->word);
+ bot_kick(ci, u, BOT_REASON_BADWORD, bw->word.c_str());
/* free the normalized buffer before return (#850) */
delete [] nbuf;