1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-06 09:13:12 +02:00
This commit is contained in:
stskeeps
2001-01-07 16:37:46 +00:00
parent 30e1580504
commit 64931ec2cb
2 changed files with 14 additions and 2 deletions
+1
View File
@@ -87,4 +87,5 @@
- Added listen {} runtime-configuration code work :))
- Removed unrealircd.conf from the stock
- X:line was replaced with drpass {} in /restart and /die (will make them faster as well)
- Made +u do a auditorium/star chat feature, suggested by |Martin|=======
- Fixed a G:line bug that would allow certain masks to be interpreted as *@*
+13 -2
View File
@@ -626,7 +626,7 @@ int can_send(cptr, chptr, msgtext)
{
Link *lp;
int member;
static char tempbuf[1500];
/* Moved check here, kinda faster.
* Note IsULine only uses the other parameter. -Donwulff */
if (IsULine(cptr) || IsServer(cptr))
@@ -647,7 +647,18 @@ int can_send(cptr, chptr, msgtext)
(!lp
|| !(lp->flags & (CHFL_CHANOP | CHFL_VOICE | CHFL_CHANOWNER |
CHFL_HALFOP | CHFL_CHANPROT))))
return (CANNOT_SEND_MODERATED);
{
if (!(chptr->mode.mode & MODE_AUDITORIUM))
{
return (CANNOT_SEND_MODERATED);
}
{
sendto_chanops_butone(cptr, chptr, ":IRC PRIVMSG %s :%s: %s",
chptr->chname, cptr->name,
msgtext);
return (CANNOT_SEND_MODERATED);
}
}
if (chptr->mode.mode & MODE_NOCTCP &&
(!lp