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

Comparing ircd-hybrid/trunk/modules/m_watch.c (file contents):
Revision 3293 by michael, Tue Mar 25 16:48:27 2014 UTC vs.
Revision 3294 by michael, Thu Apr 10 18:48:55 2014 UTC

# Line 58 | Line 58 | show_watch(struct Client *source_p, cons
58      sendto_one_numeric(source_p, &me, rpl2, name, "*", "*", 0);
59   }
60  
61 < /*
62 < * m_watch()
61 > /*! \brief WATCH command handler
62   *
63 < * parv[0] = command
64 < * parv[1] = watch options
63 > * \param source_p Pointer to allocated Client struct from which the message
64 > *                 originally comes from.  This can be a local or remote client.
65 > * \param parc     Integer holding the number of supplied arguments.
66 > * \param parv     Argument vector where parv[0] .. parv[parc-1] are non-NULL
67 > *                 pointers.
68 > * \note Valid arguments for this command are:
69 > *      - parv[0] = command
70 > *      - parv[1] = watch options
71   */
72   static int
73   m_watch(struct Client *source_p, int parc, char *parv[])
# Line 131 | Line 136 | m_watch(struct Client *source_p, int par
136  
137      /*
138       * Now comes the fun stuff, "S" or "s" returns a status report of
139 <     * their WATCH list.  I imagine this could be CPU intensive if
139 >     * their WATCH list. I imagine this could be CPU intensive if
140       * it's done alot, perhaps an auto-lag on this?
141       */
142      if (*s == 'S' || *s == 's')
# Line 156 | Line 161 | m_watch(struct Client *source_p, int par
161                   dlink_list_length(&source_p->localClient->watches), count);
162  
163        /*
164 <       * Send a list of everybody in their WATCH list.  Be careful
164 >       * Send a list of everybody in their WATCH list. Be careful
165         * not to buffer overflow.
166         */
167        if ((ptr = source_p->localClient->watches.head) == NULL)

Diff Legend

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