Use HIS_SERVERNAME instead of cli_name(&me) for a variety of
[ircu2.10.12-pk.git] / ircd / channel.c
index 81be0d993346796f09e823b4b51ce458a5b1c4bc..09e3a4484dc848d79087cbe15a0835b4297b6fc4 100644 (file)
@@ -1630,8 +1630,8 @@ modebuf_flush_int(struct ModeBuf *mbuf, int all)
 
   /* Ok, if we were given the OPMODE flag, or its a server, hide the source.
    */
-  if (mbuf->mb_dest & MODEBUF_DEST_OPMODE || IsServer(mbuf->mb_source))
-    app_source = &me;
+  if (mbuf->mb_dest & MODEBUF_DEST_OPMODE || IsServer(mbuf->mb_source) || IsMe(mbuf->mb_source))
+    app_source = &his;
   else
     app_source = mbuf->mb_source;