]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_topic.c
Move check for required CAPABs to mr_server -- CAPAB may not be sent.
[irc/rqf/shadowircd.git] / modules / m_topic.c
index a69a99e29d5b47271a1b7e5650cf24600ee94b99..7e6206e4b66feaac4ebdf1a5296636c926c7c003 100644 (file)
@@ -53,7 +53,6 @@ DECLARE_MODULE_AV1(topic, NULL, NULL, topic_clist, NULL, NULL, "$Revision: 254 $
 
 /*
  * m_topic
- *      parv[0] = sender prefix
  *      parv[1] = channel name
  *     parv[2] = new topic, if setting topic
  */
@@ -134,7 +133,8 @@ m_topic(struct Client *client_p, struct Client *source_p, int parc, const char *
                }
                else
                        sendto_one(source_p, form_str(ERR_CHANOPRIVSNEEDED),
-                                       me.name, source_p->name, name);
+                                       get_id(&me, source_p),
+                                       get_id(source_p, source_p), name);
        }
        else if(MyClient(source_p))
        {
@@ -166,7 +166,6 @@ m_topic(struct Client *client_p, struct Client *source_p, int parc, const char *
 
 /*
  * ms_topic
- *      parv[0] = sender prefix
  *      parv[1] = channel name
  *     parv[2] = topic_info
  *     parv[3] = topic_info time