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 1783 by michael, Thu Jan 24 19:26:51 2013 UTC vs.
Revision 1785 by michael, Sat Jan 26 22:40:55 2013 UTC

# Line 1184 | Line 1184 | idle_time_get(const struct Client *sourc
1184    unsigned int max_idle = 0;
1185    struct ClassItem *class = get_class_ptr(&target_p->localClient->confs);
1186  
1187 <  if (target_p == source_p)
1187 >  if (!(class->flags & CLASS_FLAGS_FAKE_IDLE) || target_p == source_p)
1188      return CurrentTime - target_p->localClient->last_privmsg;
1189    if (HasUMode(source_p, UMODE_OPER) &&
1190 <      (!(class->flags & CLASS_FLAGS_HIDE_IDLE_FROM_OPERS)))
1190 >      !(class->flags & CLASS_FLAGS_HIDE_IDLE_FROM_OPERS))
1191      return CurrentTime - target_p->localClient->last_privmsg;
1192  
1193    min_idle = class->min_idle;

Diff Legend

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