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

Comparing ircd-hybrid/trunk/src/send.c (file contents):
Revision 3174 by michael, Mon Mar 17 18:56:20 2014 UTC vs.
Revision 3176 by michael, Tue Mar 18 20:00:16 2014 UTC

# Line 987 | Line 987 | sendto_realops_flags_ratelimited(const c
987    ilog(LOG_TYPE_IRCD, "%s", buffer);
988   }
989  
990 /* kill_client()
991 *
992 * inputs       - client to send kill towards
993 *              - pointer to client to kill
994 *              - reason for kill
995 * output       - NONE
996 * side effects - NONE
997 */
998 void
999 kill_client(struct Client *client_p, struct Client *diedie,
1000            const char *pattern, ...)
1001 {
1002  va_list args;
1003  struct dbuf_block *buffer;
1004
1005  client_p = client_p->from;
1006
1007  if (IsDead(client_p))
1008    return;
1009
1010  buffer = dbuf_alloc();
1011
1012  dbuf_put_fmt(buffer, ":%s KILL %s :",
1013               ID_or_name(&me, client_p),
1014               ID_or_name(diedie, client_p));
1015
1016  va_start(args, pattern);
1017  send_format(buffer, pattern, args);
1018  va_end(args);
1019
1020  send_message(client_p, buffer);
1021
1022  dbuf_ref_free(buffer);
1023 }
1024
990   /* kill_client_serv_butone()
991   *
992   * inputs       - pointer to client to not send to

Diff Legend

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