diff --git a/Changes b/Changes index 0060d47cd..b585aa862 100644 --- a/Changes +++ b/Changes @@ -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 diff --git a/src/send.c b/src/send.c index ccd181ba5..4a60f556a 100644 --- a/src/send.c +++ b/src/send.c @@ -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.