/[svn]/ircd-hybrid-8/modules/core/m_message.c
ViewVC logotype

Diff of /ircd-hybrid-8/modules/core/m_message.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1428 by michael, Sun Mar 25 11:24:18 2012 UTC revision 1429 by michael, Thu Jun 7 19:14:14 2012 UTC
# Line 424  msg_channel(int p_or_n, const char *comm Line 424  msg_channel(int p_or_n, const char *comm
424    {    {
425      if (result == CAN_SEND_OPV ||      if (result == CAN_SEND_OPV ||
426          !flood_attack_channel(p_or_n, source_p, chptr, chptr->chname))          !flood_attack_channel(p_or_n, source_p, chptr, chptr->chname))
     {  
427        sendto_channel_butone(client_p, source_p, chptr, command, ":%s", text);        sendto_channel_butone(client_p, source_p, chptr, command, ":%s", text);
     }  
428    }    }
429    else    else
430    {    {
431      if (p_or_n != NOTICE)      if (p_or_n != NOTICE)
432        sendto_one(source_p, form_str(ERR_CANNOTSENDTOCHAN),      {
433                   ID_or_name(&me, client_p),        if (result == ERR_NEEDREGGEDNICK)
434                   ID_or_name(source_p, client_p), chptr->chname);          sendto_one(source_p, form_str(ERR_NEEDREGGEDNICK),
435                       ID_or_name(&me, client_p),
436                       ID_or_name(source_p, client_p), chptr->chname);
437          else
438            sendto_one(source_p, form_str(ERR_CANNOTSENDTOCHAN),
439                       ID_or_name(&me, client_p),
440                       ID_or_name(source_p, client_p), chptr->chname);
441        }
442    }    }
443  }  }
444    

Legend:
Removed from v.1428  
changed lines
  Added in v.1429

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28