Author: Isomer <perry@coders.net>
[ircu2.10.12-pk.git] / ircd / m_topic.c
index 2b7756e64ab67342d8f8ec134930fd31e9a6bada..300536eaa875c616571d7bd9bfc1cdd2e46b6316 100644 (file)
@@ -220,13 +220,13 @@ int ms_topic(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
     /* Modeless Channels don't have topics */
     if (IsModelessChannel(name))
     {
-      /* Protocol Violation? */
+      protocol_violation(sptr,"Attempted to topic modeless channel");
       send_reply(sptr, ERR_CHANOPRIVSNEEDED, chptr->chname);
       continue;
     }
     /* Ignore requests for topics from remote servers */
     if (IsLocalChannel(name) && !MyUser(sptr))
-      /* Protocol Violation warning here? */
+      protocol_violation(sptr,"Topic request");
       continue;
 
     do_settopic(sptr,cptr,chptr,topic);