X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/212380e3f42f585dc1ea927402252eb943f91f7b..907468c485f837cb8442c32509c8efec8f3f43b1:/modules/core/m_mode.c diff --git a/modules/core/m_mode.c b/modules/core/m_mode.c index 25b251c..72f547a 100644 --- a/modules/core/m_mode.c +++ b/modules/core/m_mode.c @@ -25,8 +25,6 @@ */ #include "stdinc.h" -#include "tools.h" -#include "balloc.h" #include "channel.h" #include "client.h" #include "hash.h" @@ -36,7 +34,7 @@ #include "s_user.h" #include "s_conf.h" #include "s_serv.h" -#include "s_log.h" +#include "logger.h" #include "send.h" #include "msg.h" #include "parse.h" @@ -136,9 +134,6 @@ m_mode(struct Client *client_p, struct Client *source_p, int parc, const char *p { msptr = find_channel_membership(chptr, source_p); - if(is_deop(msptr)) - return 0; - /* Finish the flood grace period... */ if(MyClient(source_p) && !IsFloodDone(source_p)) { @@ -205,10 +200,6 @@ ms_tmode(struct Client *client_p, struct Client *source_p, int parc, const char { msptr = find_channel_membership(chptr, source_p); - /* this can still happen on a mixed ts network. */ - if(is_deop(msptr)) - return 0; - set_channel_mode(client_p, source_p, chptr, msptr, parc - 3, parv + 3); } @@ -221,7 +212,7 @@ ms_bmask(struct Client *client_p, struct Client *source_p, int parc, const char static char modebuf[BUFSIZE]; static char parabuf[BUFSIZE]; struct Channel *chptr; - dlink_list *banlist; + rb_dlink_list *banlist; const char *s; char *t; char *mbuf; @@ -287,7 +278,7 @@ ms_bmask(struct Client *client_p, struct Client *source_p, int parc, const char fakesource_p = &me; else fakesource_p = source_p; - mlen = ircsprintf(modebuf, ":%s MODE %s +", fakesource_p->name, chptr->chname); + mlen = rb_sprintf(modebuf, ":%s MODE %s +", fakesource_p->name, chptr->chname); mbuf = modebuf + mlen; pbuf = parabuf; @@ -335,7 +326,7 @@ ms_bmask(struct Client *client_p, struct Client *source_p, int parc, const char } *mbuf++ = parv[3][0]; - arglen = ircsprintf(pbuf, "%s ", s); + arglen = rb_sprintf(pbuf, "%s ", s); pbuf += arglen; plen += arglen; modecount++;