- char buf[USERHOST_REPLYLEN];
- struct monitor *monptr = find_monitor(client_p->name, 0);
- struct Client *target_p;
- dlink_node *ptr;
-
- /* noones watching this nick */
- if(monptr == NULL)
- return;
-
- ircsnprintf(buf, sizeof(buf), "%s!%s@%s",
- client_p->name, client_p->username, client_p->host);
-
- DLINK_FOREACH(ptr, monptr->users.head)
- {
- target_p = ptr->data;
-
- sendto_one(target_p, form_str(RPL_MONONLINE),
- me.name, target_p->name, buf);
- }
+ char buf[USERHOST_REPLYLEN];\r
+ struct monitor *monptr = find_monitor(client_p->name, 0);\r
+\r
+ /* noones watching this nick */\r
+ if(monptr == NULL)\r
+ return;\r
+\r
+ rb_snprintf(buf, sizeof(buf), "%s!%s@%s", client_p->name, client_p->username, client_p->host);\r
+\r
+ sendto_monitor(monptr, form_str(RPL_MONONLINE), me.name, "*", buf);