modules/core/m_message.c: align comments about idle time (#252)

This commit is contained in:
Aaron Jones 2021-07-19 03:56:24 +00:00 committed by GitHub
parent 52f1947f56
commit 1854aa25a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -514,7 +514,7 @@ msg_channel(enum message_type msgtype,
if(MyClient(source_p)) if(MyClient(source_p))
{ {
/* idle time shouldnt be reset by notices --fl */ /* idle time shouldn't be reset by notices --fl */
if(msgtype != MESSAGE_TYPE_NOTICE) if(msgtype != MESSAGE_TYPE_NOTICE)
source_p->localClient->last = rb_current_time(); source_p->localClient->last = rb_current_time();
} }
@ -680,7 +680,7 @@ msg_channel_flags(enum message_type msgtype, struct Client *client_p,
if(MyClient(source_p)) if(MyClient(source_p))
{ {
/* idletime shouldnt be reset by notice --fl */ /* idle time shouldn't be reset by notices --fl */
if(msgtype != MESSAGE_TYPE_NOTICE) if(msgtype != MESSAGE_TYPE_NOTICE)
source_p->localClient->last = rb_current_time(); source_p->localClient->last = rb_current_time();
} }
@ -779,8 +779,7 @@ msg_client(enum message_type msgtype,
if(MyClient(source_p)) if(MyClient(source_p))
{ {
/* reset idle time for message only if its not to self /* idle time shouldn't be reset by notices --fl */
* and its not a notice */
if(msgtype != MESSAGE_TYPE_NOTICE) if(msgtype != MESSAGE_TYPE_NOTICE)
source_p->localClient->last = rb_current_time(); source_p->localClient->last = rb_current_time();