- /* Allow "host real" to match realhost */
-
- if (argc>0 && !ircd_strcmp(argv[0],"real")) {
- thenode->exe = host_exe_real;
+ if (argc>0) {
+ if (!(argsn=argtoconststr("host", ctx, argv[0], &p))) {
+ free(thenode);
+ return NULL;
+ }
+
+ /* Allow "host real" to match realhost */
+ if (!ircd_strcmp(p,"real"))
+ thenode->exe = host_exe_real;
+
+ argsn->free(ctx, argsn);