diff options
Diffstat (limited to 'modules/m_oper.c')
-rw-r--r-- | modules/m_oper.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/m_oper.c b/modules/m_oper.c index 52d4033..976fdc4 100644 --- a/modules/m_oper.c +++ b/modules/m_oper.c @@ -95,6 +95,13 @@ m_oper(struct Client *client_p, struct Client *source_p, return; } + if (IsConfSSL(conf) && !HasUMode(source_p, UMODE_SSL)) + { + sendto_one(source_p, form_str(ERR_NOOPERHOST), me.name, source_p->name); + failed_oper_notice(source_p, name, "requires SSL/TLS"); + return; + } + if (!EmptyString(conf->certfp)) { if (EmptyString(source_p->certfp) || strcasecmp(source_p->certfp, conf->certfp)) |