diff --git a/src/chmode.c b/src/chmode.c index e0aaf66..ecff7d9 100644 --- a/src/chmode.c +++ b/src/chmode.c @@ -42,7 +42,7 @@ #include "s_newconf.h" #include "logger.h" #include "chmode.h" -#include "irc_dictionary.h"; +#include "irc_dictionary.h" /* bitmasks for error returns, so we send once per call */ #define SM_ERR_NOTS 0x00000001 /* No TS on channel */ diff --git a/src/client.c b/src/client.c index 24544f1..b76caf4 100644 --- a/src/client.c +++ b/src/client.c @@ -1146,6 +1146,9 @@ exit_generic_client(struct Client *client_p, struct Client *source_p, struct Cli if(IsOper(source_p)) rb_dlinkFindDestroy(source_p, &oper_list); + /* get rid of any metadata the user may have */ + user_metadata_clear(source_p); + sendto_common_channels_local(source_p, ":%s!%s@%s QUIT :%s", source_p->name, source_p->username, source_p->host, comment); @@ -1709,9 +1712,6 @@ free_user(struct User *user, struct Client *client_p) { free_away(client_p); - /* get rid of any metadata the user may have */ - user_metadata_clear(client_p); - if(--user->refcnt <= 0) { if(user->away)