Allow Client and Operator blocks to be CIDR-based.
[ircu2.10.12-pk.git] / ircd / m_oper.c
index 60e9997e66fcecea9151e53d45d9ab1b8d7cb235..47ee82570354aa19ed89399028fe3a8a6c082d63 100644 (file)
@@ -142,11 +142,7 @@ int m_oper(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
   if (EmptyString(name) || EmptyString(password))
     return need_more_params(sptr, "OPER");
 
-  aconf = find_conf_exact(name, cli_username(sptr), cli_sockhost(sptr), CONF_OPERATOR);
-  if (!aconf)
-    aconf = find_conf_exact(name, cli_username(sptr),
-                            ircd_ntoa(&cli_ip(cptr)), CONF_OPERATOR);
-
+  aconf = find_conf_exact(name, sptr, CONF_OPERATOR);
   if (!aconf || IsIllegal(aconf))
   {
     send_reply(sptr, ERR_NOOPERHOST);