1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 20:03:13 +02:00

+- Added #undef SECURECHANMSGSONLYGOTOSECURE - send only channel msgs to +z

+  people on +z channels
+- win32 fixes
This commit is contained in:
stskeeps
2001-12-21 17:40:43 +00:00
parent ea1e7b3f70
commit a4de9ac1e2
3 changed files with 21 additions and 0 deletions
+3
View File
@@ -1002,3 +1002,6 @@ seen. gmtime warning still there
- SMO recoded but wierd because sendto_umode and sendto_snomask are wierd
- chatops actually checks if sender is an oper, why did no one notice this?
- bugs in SMO ironed out, now sends to someone with ANY of the umodes/snomasks
- Added #undef SECURECHANMSGSONLYGOTOSECURE - send only channel msgs to +z
people on +z channels
- win32 fixes
+7
View File
@@ -103,6 +103,13 @@
*/
#define PROPER_COREDUMP
/*
* If channel mode is +z, only send to secure links & people
*
*/
#undef SECURECHANMSGSONLYGOTOSECURE
/*
* be compatible with older cloak keys? If you link to servers beta4 and
* earlier without this the cloak keys will produce diff results
+11
View File
@@ -351,6 +351,11 @@ void sendto_channelprefix_butone(aClient *one, aClient *from, aChannel *chptr,
i = acptr->from->fd;
if (MyConnect(acptr) && IsRegisteredUser(acptr))
{
#ifdef SECURECHANMSGSONLYGOTOSECURE
if (chptr->mode.mode & MODE_ONLYSECURE)
if (!IsSecure(acptr))
continue;
#endif
vsendto_prefix_one(acptr, from, pattern, vl);
sentalong[i] = 1;
}
@@ -360,6 +365,12 @@ void sendto_channelprefix_butone(aClient *one, aClient *from, aChannel *chptr,
* remote link already */
if (sentalong[i] == 0)
{
#ifdef SECURECHANMSGSONLYGOTOSECURE
if (chptr->mode.mode & MODE_ONLYSECURE)
if (!IsSecure(acptr->from))
continue;
#endif
vsendto_prefix_one(acptr, from, pattern, vl);
sentalong[i] = 1;
}