mirror of
https://github.com/matrix-construct/construct
synced 2024-09-05 16:25:26 +02:00
Remove Channel->users_last, used nowhere
This commit is contained in:
parent
402f3941d0
commit
b4407833bd
2 changed files with 0 additions and 5 deletions
|
@ -56,7 +56,6 @@ struct Channel
|
||||||
char *topic;
|
char *topic;
|
||||||
char *topic_info;
|
char *topic_info;
|
||||||
time_t topic_time;
|
time_t topic_time;
|
||||||
time_t users_last; /* when last user was in channel */
|
|
||||||
time_t last_knock; /* don't allow knock to flood */
|
time_t last_knock; /* don't allow knock to flood */
|
||||||
|
|
||||||
rb_dlink_list members; /* channel members */
|
rb_dlink_list members; /* channel members */
|
||||||
|
|
|
@ -240,8 +240,6 @@ remove_user_from_channel(struct membership *msptr)
|
||||||
if(client_p->servptr == &me)
|
if(client_p->servptr == &me)
|
||||||
rb_dlinkDelete(&msptr->locchannode, &chptr->locmembers);
|
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)
|
if(!(chptr->mode.mode & MODE_PERMANENT) && rb_dlink_list_length(&chptr->members) <= 0)
|
||||||
destroy_channel(chptr);
|
destroy_channel(chptr);
|
||||||
|
|
||||||
|
@ -277,8 +275,6 @@ remove_user_from_channels(struct Client *client_p)
|
||||||
if(client_p->servptr == &me)
|
if(client_p->servptr == &me)
|
||||||
rb_dlinkDelete(&msptr->locchannode, &chptr->locmembers);
|
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)
|
if(!(chptr->mode.mode & MODE_PERMANENT) && rb_dlink_list_length(&chptr->members) <= 0)
|
||||||
destroy_channel(chptr);
|
destroy_channel(chptr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue