]> jfr.im git - solanum.git/blobdiff - ircd/parse.c
Add general::tls_ciphers_oper_only
[solanum.git] / ircd / parse.c
index e09dbe38ec9ffff89cf3e4ac78e6a5853daf37b4..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)
@@ -295,8 +293,11 @@ mod_add_cmd(struct Message *msg)
        if(msg == NULL)
                return;
 
-       if (rb_dictionary_find(cmd_dict, msg->cmd) != NULL)
+       if (rb_dictionary_find(cmd_dict, msg->cmd) != NULL) {
+               ilog(L_MAIN, "Add command: %s already exists", msg->cmd);
+               s_assert(0);
                return;
+       }
 
        msg->count = 0;
        msg->rcount = 0;
@@ -318,7 +319,10 @@ mod_del_cmd(struct Message *msg)
        if(msg == NULL)
                return;
 
-       rb_dictionary_delete(cmd_dict, msg->cmd);
+       if (rb_dictionary_delete(cmd_dict, msg->cmd) == NULL) {
+               ilog(L_MAIN, "Delete command: %s not found", msg->cmd);
+               s_assert(0);
+       }
 }
 
 /* cancel_clients()
@@ -515,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