diff src/protocols/jabber/message.c @ 7972:ac01b7d67ff9

[gaim-migrate @ 8649] yay, /nick for jabber i'll be really happy if marv finishes /command support for the core soon ;-) committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 02 Jan 2004 07:34:26 +0000
parents 6fca0d9cc98b
children 415df6fa0395
line wrap: on
line diff
--- a/src/protocols/jabber/message.c	Fri Jan 02 06:16:44 2004 +0000
+++ b/src/protocols/jabber/message.c	Fri Jan 02 07:34:26 2004 +0000
@@ -499,6 +499,10 @@
 	} else if(!strncmp(msg, "/topic", 6)) {
 		jabber_chat_change_topic(chat, strlen(msg) > 7 ? msg+7 : NULL);
 		return 1;
+	} else if(!strncmp(msg, "/nick", 5)) {
+		if(strlen(msg) > 6)
+			jabber_chat_change_nick(chat, msg+6);
+		return 1;
 	}
 
 	jm = g_new0(JabberMessage, 1);