Treat G-line-related times as network times, rather than local times.
[ircu2.10.12-pk.git] / ircd / m_ison.c
index e26b0d255f299bf32164688d7be75726894d8879..00adddc84f104d3133807076fa593a875b2a0eb1 100644 (file)
  *            note:   it is guaranteed that parv[0]..parv[parc-1] are all
  *                    non-NULL pointers.
  */
-#if 0
-/*
- * No need to include handlers.h here the signatures must match
- * and we don't need to force a rebuild of all the handlers everytime
- * we add a new one to the list. --Bleep
- */
-#include "handlers.h"
-#endif /* 0 */
+#include "config.h"
+
 #include "client.h"
 #include "hash.h"
 #include "ircd.h"
+#include "ircd_log.h"
 #include "ircd_reply.h"
 #include "ircd_string.h"
 #include "msgq.h"
 #include "numeric.h"
 #include "send.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <string.h>
 
 /*
  * m_ison
  *
- * Added by Darren Reed 13/8/91 to act as an efficent user indicator
+ * Added by Darren Reed 13/8/91 to act as an efficient user indicator
  * with respect to cpu/bandwidth used. Implemented for NOTIFY feature in
  * clients. Designed to reduce number of whois requests. Can process
  * nicknames in batches as long as the maximum buffer length.
@@ -120,7 +115,6 @@ int m_ison(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
   char*          name;
   char*          p = 0;
   struct MsgBuf* mb;
-  int found1 = 0;
   int i;
 
   if (parc < 2)
@@ -137,10 +131,8 @@ int m_ison(struct Client *cptr, struct Client *sptr, int parc, char *parv[])
          msgq_clean(mb); /* then do another round */
          mb = msgq_make(sptr, rpl_str(RPL_ISON), cli_name(&me),
                         cli_name(sptr));
-         found1 = 0;
        }
-       msgq_append(0, mb, "%s%s", found1 ? " " : "", cli_name(acptr));
-       found1++;
+       msgq_append(0, mb, "%s ", cli_name(acptr));
       }
     }
   }