X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/2ec04d9c3b9ede14ec6273c844627f5c7211df34..bc4764aefd072a865de16679da71aa5520c79234:/modules/core/m_message.c diff --git a/modules/core/m_message.c b/modules/core/m_message.c index 0a78302..0101500 100644 --- a/modules/core/m_message.c +++ b/modules/core/m_message.c @@ -736,6 +736,7 @@ msg_client(int p_or_n, const char *command, struct Metadata *md; struct DictionaryIter iter; int oaccept = 0; + char *text3 = rb_strdup(""); if(MyClient(source_p)) { @@ -798,9 +799,10 @@ msg_client(int p_or_n, const char *command, { if (IsOper(source_p)) { + rb_sprintf(text3, "O%s", source_p->id); DICTIONARY_FOREACH(md, &iter, target_p->user->metadata) { - if(!strcmp(md->value, source_p->id)) + if(!strcmp(md->value, "OACCEPT") && !strcmp(md->name, text3)) { oaccept = 1; break;