summaryrefslogtreecommitdiff
path: root/modules/m_topic.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/m_topic.c')
-rw-r--r--modules/m_topic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/m_topic.c b/modules/m_topic.c
index 82c3f72..4606e32 100644
--- a/modules/m_topic.c
+++ b/modules/m_topic.c
@@ -76,7 +76,7 @@ m_topic(struct Client *client_p, struct Client *source_p,
if ((ms = find_channel_link(source_p, chptr)) == NULL)
{
sendto_one(source_p, form_str(ERR_NOTONCHANNEL), me.name,
- source_p->name, parv[1]);
+ source_p->name, chptr->chname);
return 0;
}