From b4407833bdd7dece0647b55b66033e4d5f4206c6 Mon Sep 17 00:00:00 2001 From: Valery V Yatsko Date: Sat, 28 Jun 2008 12:25:53 +0400 Subject: [PATCH] Remove Channel->users_last, used nowhere --- include/channel.h | 1 - src/channel.c | 4 ---- 2 files changed, 5 deletions(-) diff --git a/include/channel.h b/include/channel.h index 55eeab9f..12d6196d 100644 --- a/include/channel.h +++ b/include/channel.h @@ -56,7 +56,6 @@ struct Channel char *topic; char *topic_info; time_t topic_time; - time_t users_last; /* when last user was in channel */ time_t last_knock; /* don't allow knock to flood */ rb_dlink_list members; /* channel members */ diff --git a/src/channel.c b/src/channel.c index 8d59a83a..a8f34fb9 100644 --- a/src/channel.c +++ b/src/channel.c @@ -240,8 +240,6 @@ remove_user_from_channel(struct membership *msptr) if(client_p->servptr == &me) rb_dlinkDelete(&msptr->locchannode, &chptr->locmembers); - chptr->users_last = rb_current_time(); - if(!(chptr->mode.mode & MODE_PERMANENT) && rb_dlink_list_length(&chptr->members) <= 0) destroy_channel(chptr); @@ -277,8 +275,6 @@ remove_user_from_channels(struct Client *client_p) if(client_p->servptr == &me) rb_dlinkDelete(&msptr->locchannode, &chptr->locmembers); - chptr->users_last = rb_current_time(); - if(!(chptr->mode.mode & MODE_PERMANENT) && rb_dlink_list_length(&chptr->members) <= 0) destroy_channel(chptr);