diff src/protocols/jabber/message.c @ 7974:415df6fa0395

[gaim-migrate @ 8651] jabber /part support (with /part messages!) the list of the cool jabber chat stuff I can do w/o certain extras from people who know who they are is getting shorter and shorter committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Fri, 02 Jan 2004 15:34:04 +0000
parents ac01b7d67ff9
children 7bae464195c4
line wrap: on
line diff
--- a/src/protocols/jabber/message.c	Fri Jan 02 08:15:52 2004 +0000
+++ b/src/protocols/jabber/message.c	Fri Jan 02 15:34:04 2004 +0000
@@ -503,6 +503,9 @@
 		if(strlen(msg) > 6)
 			jabber_chat_change_nick(chat, msg+6);
 		return 1;
+	} else if(!strncmp(msg, "/part", 5)) {
+		jabber_chat_part(chat, strlen(msg) > 6 ? msg+6 : NULL);
+		return 1;
 	}
 
 	jm = g_new0(JabberMessage, 1);