]> jfr.im git - solanum.git/blobdiff - ircd/parse.c
Add general::tls_ciphers_oper_only
[solanum.git] / ircd / parse.c
index 9af59791e5beec80104c2775118f3c635194413c..250424bfbfa21f835b46104eecf21368264469b2 100644 (file)
@@ -144,8 +144,6 @@ parse(struct Client *client_p, char *pbuffer, char *bufend)
                        ServerStats.is_unco++;
                        return;
                }
-
-               mptr->bytes += msgbuf.parselen;
        }
 
        if(mptr == NULL)
@@ -296,6 +294,7 @@ mod_add_cmd(struct Message *msg)
                return;
 
        if (rb_dictionary_find(cmd_dict, msg->cmd) != NULL) {
+               ilog(L_MAIN, "Add command: %s already exists", msg->cmd);
                s_assert(0);
                return;
        }
@@ -320,8 +319,10 @@ mod_del_cmd(struct Message *msg)
        if(msg == NULL)
                return;
 
-       if (rb_dictionary_delete(cmd_dict, msg->cmd) == NULL)
+       if (rb_dictionary_delete(cmd_dict, msg->cmd) == NULL) {
+               ilog(L_MAIN, "Delete command: %s not found", msg->cmd);
                s_assert(0);
+       }
 }
 
 /* cancel_clients()
@@ -518,6 +519,9 @@ m_not_oper(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sour
 void
 m_unregistered(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])
 {
+       if(IsAnyServer(client_p))
+               return;
+
        /* bit of a hack.
         * I don't =really= want to waste a bit in a flag
         * number_of_nick_changes is only really valid after the client