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

Index: Changes

===================================================================
RCS file: /home/cmunk/ircsystems/cvsroot/unreal/Changes,v
retrieving revision 1.1.1.1.2.1.2.1.2.154
diff -u -r1.1.1.1.2.1.2.1.2.154 Changes
--- Changes	2000/08/01 16:30:15	1.1.1.1.2.1.2.1.2.154
+++ Changes	2000/08/01 16:34:06
@@ -493,3 +493,4 @@
 - Fixed SVS2MODE bug with illegal modes
 - Fixed /notice @%+ bug, where it didnt work at all
 - Fixed a small chmode +u bug
+- Added sendto_chanops_butone because of codemastr's laziness
This commit is contained in:
stskeeps
2000-08-01 16:34:07 +00:00
parent 6f9606b331
commit c1c1aa2909
2 changed files with 24 additions and 0 deletions
+1
View File
@@ -493,3 +493,4 @@
- Fixed SVS2MODE bug with illegal modes
- Fixed /notice @%+ bug, where it didnt work at all
- Fixed a small chmode +u bug
- Added sendto_chanops_butone because of codemastr's laziness
+23
View File
@@ -371,7 +371,30 @@ void sendto_channelprefix_butone(aClient *one, aClient *from, aChannel *chptr,
return;
}
/*
sendto_chanops_butone -Stskeeps
*/
void sendto_chanops_butone(aClient *one, aChannel *chptr, char *pattern, ...)
{
va_list vl;
Link *lp;
aClient *acptr;
va_start(vl, pattern);
for (lp = chptr->members; lp; lp = lp->next)
{
acptr = lp->value.cptr;
if (acptr == one || !(lp->flags & CHFL_CHANOP))
continue; /* ...was the one I should skip
or user not not a channel op */
if (MyConnect(acptr) && IsRegisteredUser(acptr))
{
vsendto_one(acptr, pattern, vl);
}
}
}
/*
* sendto_channelops_butone Added 1 Sep 1996 by Cabal95.