diff --git a/modules/core/m_join.c b/modules/core/m_join.c index 99daee4e..339aaa3a 100644 --- a/modules/core/m_join.c +++ b/modules/core/m_join.c @@ -398,7 +398,6 @@ ms_join(struct Client *client_p, struct Client *source_p, int parc, const char * time_t newts; int isnew; int keep_our_modes = YES; - int keep_new_modes = YES; rb_dlink_node *ptr, *next_ptr; /* special case for join 0 */ @@ -460,8 +459,6 @@ ms_join(struct Client *client_p, struct Client *source_p, int parc, const char * keep_our_modes = NO; chptr->channelts = newts; } - else - keep_new_modes = NO; /* Lost the TS, other side wins, so remove modes on this side */ if(!keep_our_modes) diff --git a/modules/core/m_kill.c b/modules/core/m_kill.c index c78baf58..17042fcc 100644 --- a/modules/core/m_kill.c +++ b/modules/core/m_kill.c @@ -168,7 +168,6 @@ ms_kill(struct Client *client_p, struct Client *source_p, int parc, const char * const char *reason; char default_reason[] = ""; const char *path; - int chasing = 0; *buf = '\0'; @@ -212,7 +211,6 @@ ms_kill(struct Client *client_p, struct Client *source_p, int parc, const char * return 0; } sendto_one_notice(source_p, ":KILL changed from %s to %s", user, target_p->name); - chasing = 1; } if(IsServer(target_p) || IsMe(target_p)) diff --git a/modules/core/m_server.c b/modules/core/m_server.c index 38d454fb..27e119a0 100644 --- a/modules/core/m_server.c +++ b/modules/core/m_server.c @@ -485,13 +485,10 @@ ms_sid(struct Client *client_p, struct Client *source_p, int parc, const char *p struct remote_conf *hub_p; hook_data_client hdata; rb_dlink_node *ptr; - int hop; int hlined = 0; int llined = 0; char squitreason[160]; - hop = atoi(parv[2]); - /* collision on the name? */ if((target_p = find_server(NULL, parv[1])) != NULL) { diff --git a/modules/m_stats.c b/modules/m_stats.c index 39548687..8d5d2dd5 100644 --- a/modules/m_stats.c +++ b/modules/m_stats.c @@ -1165,7 +1165,6 @@ stats_memory (struct Client *source_p) { struct Client *target_p; struct Channel *chptr; - struct Ban *actualBan; rb_dlink_node *rb_dlink; rb_dlink_node *ptr; int channel_count = 0; @@ -1247,7 +1246,6 @@ stats_memory (struct Client *source_p) RB_DLINK_FOREACH(rb_dlink, chptr->banlist.head) { - actualBan = rb_dlink->data; channel_bans++; channel_ban_memory += sizeof(rb_dlink_node) + sizeof(struct Ban); @@ -1255,7 +1253,6 @@ stats_memory (struct Client *source_p) RB_DLINK_FOREACH(rb_dlink, chptr->exceptlist.head) { - actualBan = rb_dlink->data; channel_except++; channel_except_memory += (sizeof(rb_dlink_node) + sizeof(struct Ban)); @@ -1263,7 +1260,6 @@ stats_memory (struct Client *source_p) RB_DLINK_FOREACH(rb_dlink, chptr->invexlist.head) { - actualBan = rb_dlink->data; channel_invex++; channel_invex_memory += (sizeof(rb_dlink_node) + sizeof(struct Ban)); @@ -1271,7 +1267,6 @@ stats_memory (struct Client *source_p) RB_DLINK_FOREACH(rb_dlink, chptr->quietlist.head) { - actualBan = rb_dlink->data; channel_quiets++; channel_quiet_memory += (sizeof(rb_dlink_node) + sizeof(struct Ban)); diff --git a/modules/m_user.c b/modules/m_user.c index 2f792a7b..f46ec8b4 100644 --- a/modules/m_user.c +++ b/modules/m_user.c @@ -83,12 +83,10 @@ static int do_local_user(struct Client *client_p, struct Client *source_p, const char *username, const char *realname) { - struct User *user; - s_assert(NULL != source_p); s_assert(source_p->username != username); - user = make_user(source_p); + make_user(source_p); if (!(source_p->flags & FLAGS_SENTUSER)) {