diff --git a/include/channel.h b/include/channel.h index 55eeab9..12d6196 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 8d59a83..a8f34fb 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);