ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/client.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/client.c (file contents):
Revision 7797 by michael, Tue Oct 18 17:27:10 2016 UTC vs.
Revision 7870 by michael, Wed Nov 9 20:12:50 2016 UTC

# Line 822 | Line 822 | exit_client(struct Client *source_p, con
822      }
823    }
824    else if (IsClient(source_p) && !HasFlag(source_p, FLAGS_KILLED))
825 <    sendto_server(source_p->from, 0, 0, ":%s QUIT :%s",
826 <                  source_p->id, comment);
825 >    sendto_server(source_p->from, 0, 0, ":%s QUIT :%s", source_p->id, comment);
826  
827    /* The client *better* be off all of the lists */
828    assert(dlinkFind(&unknown_list, source_p) == NULL);
# Line 1063 | Line 1062 | client_get_idle_time(const struct Client
1062    else
1063      idle = CurrentTime - target_p->connection->last_privmsg;
1064  
1065 <  if (!max_idle)
1067 <    idle = 0;
1068 <  else
1065 >  if (max_idle)
1066      idle %= max_idle;
1067 +  else
1068 +    idle = 0;
1069  
1070    if (idle < min_idle)
1071      idle = min_idle + (idle % (max_idle - min_idle));

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)