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

Comparing ircd-hybrid/trunk/src/whowas.c (file contents):
Revision 7490 by michael, Sat Mar 19 18:58:29 2016 UTC vs.
Revision 7495 by michael, Mon Mar 21 20:03:46 2016 UTC

# Line 114 | Line 114 | whowas_make(void)
114   void
115   whowas_trim(void)
116   {
117 <  while (dlink_list_length(&whowas_list) >= ConfigGeneral.whowas_history_length)
118 <  {
119 <    if (!whowas_list.tail)
120 <      return;  /* whowas_list is now empty. No more items can be freed. */
121 <
117 >  while (dlink_list_length(&whowas_list) &&
118 >         dlink_list_length(&whowas_list) >= ConfigGeneral.whowas_history_length)
119      whowas_free(whowas_list.tail->data);
123  }
120   }
121  
122   /*! \brief Adds the currently defined name of the client to history.

Diff Legend

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