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-7.2/src/send.c (file contents):
Revision 430 by michael, Sat Feb 11 12:52:34 2006 UTC vs.
Revision 438 by michael, Sat Feb 11 21:53:46 2006 UTC

# Line 112 | Line 112 | iosend_default(va_list args)
112   static void
113   send_message(struct Client *to, char *buf, int len)
114   {
115 < #ifdef INVARIANTS
116 <  if (IsMe(to))
117 <  {
118 <    sendto_realops_flags(UMODE_ALL, L_ALL,
119 <                         "Trying to send message to myself!");
120 <    return;
121 <  }
122 < #endif
115 >  assert(!IsMe(to))
116 >  assert(to != &me);
117  
118    if (dbuf_length(&to->localClient->buf_sendq) + len > get_sendq(to))
119    {

Diff Legend

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