diff src/protocols/irc/irc.c @ 9130:933a19e3a6b3

[gaim-migrate @ 9908] This puts the core in charge of irc-style /commands, which is way cool. Tim did most of the work, I've just been keeping it in sync with CVS, and slowly adding more commands to jabber. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 30 May 2004 19:34:21 +0000
parents 7ab20f829190
children dcb290a0c970
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Sun May 30 19:30:14 2004 +0000
+++ b/src/protocols/irc/irc.c	Sun May 30 19:34:21 2004 +0000
@@ -321,11 +321,11 @@
 	else
 		args[0] = who;
 	args[1] = what;
-
+#if 0
 	if (*what == '/') {
 		return irc_parse_cmd(irc, who, what + 1);
 	}
-
+#endif
 	irc_cmd_privmsg(irc, "msg", NULL, args);
 	return 1;
 }
@@ -461,11 +461,11 @@
 		gaim_debug(GAIM_DEBUG_ERROR, "irc", "chat send on nonexistent chat\n");
 		return -EINVAL;
 	}
-
+#if 0
 	if (*what == '/') {
 		return irc_parse_cmd(irc, convo->name, what + 1);
 	}
-
+#endif
 	args[0] = convo->name;
 	args[1] = what;
 
@@ -654,6 +654,8 @@
 	prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option);
 
 	_irc_plugin = plugin;
+
+	irc_register_commands();
 }
 
 GAIM_INIT_PLUGIN(irc, _init_plugin, info);