| 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[]) |
| 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') |
| 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) |