]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/newconf.c
Fix the typos in the last commit so it compiles and works.
[irc/rqf/shadowircd.git] / src / newconf.c
index 233a05e20db481882ae6ab1f445ad48ff3be2bcd..7a07675a405f7f970518aafc643bf59f650cfafe 100644 (file)
@@ -577,13 +577,13 @@ conf_end_oper(struct TopConf *tc)
                else
                        conf_report_error("Ignoring vhost setting for oper %s -- invalid hostmask.", yy_oper->name);
 
-               if(strlen(yy_oper->swhois < 400))
-                       yy_tmpoper->swhois = rb(strdup(yy_oper->swhois);
+               if(strlen(yy_oper->swhois) < 400)
+                       yy_tmpoper->swhois = rb_strdup(yy_oper->swhois);
                else
                        conf_report_error("Ignoring swhois setting for oper %s -- swhois too long.", yy_oper->name);
 
-               if(strlen(yy_oper->operstring < 400))
-                       yy_tmpoper->operstring = rb(strdup(yy_oper->operstring);
+               if(strlen(yy_oper->operstring) < 400)
+                       yy_tmpoper->operstring = rb_strdup(yy_oper->operstring);
                else
                        conf_report_error("Ignoring operstring setting for oper %s -- operstring too long.", yy_oper->name);