mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02:00
/NOTIFY -idle fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@515 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
1a655f3575
commit
e322876342
4 changed files with 11 additions and 14 deletions
|
|
@ -231,8 +231,8 @@ static void notifylist_idle_reset(IRC_SERVER_REC *server, const char *nick)
|
|||
rec = notify_nick_find(server, nick);
|
||||
|
||||
if (notify != NULL && rec != NULL && notify->idle_check_time > 0 &&
|
||||
time(NULL)-rec->idle_time > notify->idle_check_time) {
|
||||
rec->idle_time = time(NULL);
|
||||
rec->idle_time > notify->idle_check_time) {
|
||||
rec->idle_time = 0;
|
||||
signal_emit("notifylist unidle", 6,
|
||||
server, rec->nick,
|
||||
rec->user, rec->host,
|
||||
|
|
@ -289,7 +289,7 @@ static void notifylist_check_join(IRC_SERVER_REC *server, const char *nick,
|
|||
if (away != -1) rec->away = away;
|
||||
rec->host_ok = TRUE;
|
||||
rec->join_announced = TRUE;
|
||||
rec->idle_time = time(NULL);
|
||||
rec->idle_time = 0;
|
||||
|
||||
signal_emit("notifylist joined", 6,
|
||||
server, rec->nick, rec->user, rec->host, realname, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue