- this->CreateCommand("USER",handle_user,0,4,"<core>");
- this->CreateCommand("NICK",handle_nick,0,1,"<core>");
- this->CreateCommand("QUIT",handle_quit,0,0,"<core>");
- this->CreateCommand("VERSION",handle_version,0,0,"<core>");
- this->CreateCommand("PING",handle_ping,0,1,"<core>");
- this->CreateCommand("PONG",handle_pong,0,1,"<core>");
- this->CreateCommand("ADMIN",handle_admin,0,0,"<core>");
- this->CreateCommand("PRIVMSG",handle_privmsg,0,2,"<core>");
- this->CreateCommand("INFO",handle_info,0,0,"<core>");
- this->CreateCommand("TIME",handle_time,0,0,"<core>");
- this->CreateCommand("WHOIS",handle_whois,0,1,"<core>");
- this->CreateCommand("WALLOPS",handle_wallops,'o',1,"<core>");
- this->CreateCommand("NOTICE",handle_notice,0,2,"<core>");
- this->CreateCommand("JOIN",handle_join,0,1,"<core>");
- this->CreateCommand("NAMES",handle_names,0,0,"<core>");
- this->CreateCommand("PART",handle_part,0,1,"<core>");
- this->CreateCommand("KICK",handle_kick,0,2,"<core>");
- this->CreateCommand("MODE",handle_mode,0,1,"<core>");
- this->CreateCommand("TOPIC",handle_topic,0,1,"<core>");
- this->CreateCommand("WHO",handle_who,0,1,"<core>");
- this->CreateCommand("MOTD",handle_motd,0,0,"<core>");
- this->CreateCommand("RULES",handle_rules,0,0,"<core>");
- this->CreateCommand("OPER",handle_oper,0,2,"<core>");
- this->CreateCommand("LIST",handle_list,0,0,"<core>");
- this->CreateCommand("DIE",handle_die,'o',1,"<core>");
- this->CreateCommand("RESTART",handle_restart,'o',1,"<core>");
- this->CreateCommand("KILL",handle_kill,'o',2,"<core>");
- this->CreateCommand("REHASH",handle_rehash,'o',0,"<core>");
- this->CreateCommand("LUSERS",handle_lusers,0,0,"<core>");
- this->CreateCommand("STATS",handle_stats,0,1,"<core>");
- this->CreateCommand("USERHOST",handle_userhost,0,1,"<core>");
- this->CreateCommand("AWAY",handle_away,0,0,"<core>");
- this->CreateCommand("ISON",handle_ison,0,0,"<core>");
- this->CreateCommand("SUMMON",handle_summon,0,0,"<core>");
- this->CreateCommand("USERS",handle_users,0,0,"<core>");
- this->CreateCommand("INVITE",handle_invite,0,0,"<core>");
- this->CreateCommand("PASS",handle_pass,0,1,"<core>");
- this->CreateCommand("TRACE",handle_trace,'o',0,"<core>");
- this->CreateCommand("WHOWAS",handle_whowas,0,1,"<core>");
- this->CreateCommand("CONNECT",handle_connect,'o',1,"<core>");
- this->CreateCommand("SQUIT",handle_squit,'o',0,"<core>");
- this->CreateCommand("MODULES",handle_modules,0,0,"<core>");
- this->CreateCommand("LINKS",handle_links,0,0,"<core>");
- this->CreateCommand("MAP",handle_map,0,0,"<core>");
- this->CreateCommand("KLINE",handle_kline,'o',1,"<core>");
- this->CreateCommand("GLINE",handle_gline,'o',1,"<core>");
- this->CreateCommand("ZLINE",handle_zline,'o',1,"<core>");
- this->CreateCommand("QLINE",handle_qline,'o',1,"<core>");
- this->CreateCommand("ELINE",handle_eline,'o',1,"<core>");
- this->CreateCommand("LOADMODULE",handle_loadmodule,'o',1,"<core>");
- this->CreateCommand("UNLOADMODULE",handle_unloadmodule,'o',1,"<core>");
- this->CreateCommand("SERVER",handle_server,0,0,"<core>");
- this->CreateCommand("COMMANDS",handle_commands,0,0,"<core>");
+ /* These three are special (can occur without
+ * full user registration) and so are saved
+ * for later use.
+ */
+ command_user = new cmd_user;
+ command_nick = new cmd_nick;
+ command_pass = new cmd_pass;
+ this->CreateCommand(command_user);
+ this->CreateCommand(command_nick);
+ this->CreateCommand(command_pass);
+
+ /* The rest of these arent special. boo hoo.
+ */
+ this->CreateCommand(new cmd_quit);
+ this->CreateCommand(new cmd_version);
+ this->CreateCommand(new cmd_ping);
+ this->CreateCommand(new cmd_pong);
+ this->CreateCommand(new cmd_admin);
+ this->CreateCommand(new cmd_privmsg);
+ this->CreateCommand(new cmd_info);
+ this->CreateCommand(new cmd_time);
+ this->CreateCommand(new cmd_whois);
+ this->CreateCommand(new cmd_wallops);
+ this->CreateCommand(new cmd_notice);
+ this->CreateCommand(new cmd_join);
+ this->CreateCommand(new cmd_names);
+ this->CreateCommand(new cmd_part);
+ this->CreateCommand(new cmd_kick);
+ this->CreateCommand(new cmd_mode);
+ this->CreateCommand(new cmd_topic);
+ this->CreateCommand(new cmd_who);
+ this->CreateCommand(new cmd_motd);
+ this->CreateCommand(new cmd_rules);
+ this->CreateCommand(new cmd_oper);
+ this->CreateCommand(new cmd_list);
+ this->CreateCommand(new cmd_die);
+ this->CreateCommand(new cmd_restart);
+ this->CreateCommand(new cmd_kill);
+ this->CreateCommand(new cmd_rehash);
+ this->CreateCommand(new cmd_lusers);
+ this->CreateCommand(new cmd_stats);
+ this->CreateCommand(new cmd_userhost);
+ this->CreateCommand(new cmd_away);
+ this->CreateCommand(new cmd_ison);
+ this->CreateCommand(new cmd_summon);
+ this->CreateCommand(new cmd_users);
+ this->CreateCommand(new cmd_invite);
+ this->CreateCommand(new cmd_trace);
+ this->CreateCommand(new cmd_whowas);
+ this->CreateCommand(new cmd_connect);
+ this->CreateCommand(new cmd_squit);
+ this->CreateCommand(new cmd_modules);
+ this->CreateCommand(new cmd_links);
+ this->CreateCommand(new cmd_map);
+ this->CreateCommand(new cmd_kline);
+ this->CreateCommand(new cmd_gline);
+ this->CreateCommand(new cmd_zline);
+ this->CreateCommand(new cmd_qline);
+ this->CreateCommand(new cmd_eline);
+ this->CreateCommand(new cmd_loadmodule);
+ this->CreateCommand(new cmd_unloadmodule);
+ this->CreateCommand(new cmd_server);
+ this->CreateCommand(new cmd_commands);