]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_topic.c
Fix a quick compile warning.
[irc/rqf/shadowircd.git] / modules / m_topic.c
index 4b6d44bb0bbd618ad599a9b524e65b9826535a1b..3e8b4bf24fcbec9ad58ad73e22788fc85868c5b7 100644 (file)
@@ -21,7 +21,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: m_topic.c 254 2005-09-21 23:35:12Z nenolod $
  */
 
 #include "stdinc.h"
@@ -116,7 +115,7 @@ m_topic(struct Client *client_p, struct Client *source_p, int parc, const char *
                        return 0;
                }
 
-               if(MyClient(source_p) && (chptr->mode.mode & MODE_TOPICLIMIT) && !is_chanop(msptr))
+               if(MyClient(source_p) && (chptr->mode.mode & MODE_TOPICLIMIT) && !is_any_op(msptr))
                {
                        if(IsOverride(source_p))
                        {
@@ -125,7 +124,7 @@ m_topic(struct Client *client_p, struct Client *source_p, int parc, const char *
                                                get_oper_name(source_p), chptr->chname);
                                sendto_server(NULL, chptr, NOCAPS, NOCAPS,
                                                ":%s WALLOPS :%s is overriding TOPIC on [%s]",
-                                               use_id(source_p), get_oper_name(source_p), chptr->chname);
+                                               me.name, get_oper_name(source_p), chptr->chname);
                        }
                        else
                        {