IPv6 support (hopefully with fewer future transition pains)
[ircu2.10.12-pk.git] / ircd / m_oper.c
index a180c0559f22bc77160a388dba7c19d050f4d10f..cc2e47cedf17d09513bc9691752506a6d0f20f7c 100644 (file)
@@ -144,9 +144,9 @@ int m_oper(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
     return need_more_params(sptr, "OPER");
 
   aconf = find_conf_exact(name, cli_username(sptr), cli_sockhost(sptr), CONF_OPERATOR);
-  if (!aconf) 
+  if (!aconf)
     aconf = find_conf_exact(name, cli_username(sptr),
-                            ircd_ntoa((const char*) &(cli_ip(cptr))), CONF_OPERATOR);
+                            ircd_ntoa(&cli_ip(cptr)), CONF_OPERATOR);
 
   if (!aconf || IsIllegal(aconf))
   {