comparison libpurple/protocols/jabber/libxmpp.c @ 18030:62a71bb085ef

Mostly taken from the patch on ticket #410, don't send unknown slash commands as messages on protocols where slash commands are "native". This is determined by using a new OPT_PROTO_SLASH_COMMAND_NATIVE protocol option, so this only goes in the 2.1.0 branch. Fixes #410.
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 02 Jun 2007 12:05:50 +0000
parents b08636a33721
children e3e42a99070e
comparison
equal deleted inserted replaced
18029:9e648622bf72 18030:62a71bb085ef
41 41
42 static PurplePluginProtocolInfo prpl_info = 42 static PurplePluginProtocolInfo prpl_info =
43 { 43 {
44 #ifdef HAVE_CYRUS_SASL 44 #ifdef HAVE_CYRUS_SASL
45 OPT_PROTO_CHAT_TOPIC | OPT_PROTO_UNIQUE_CHATNAME | 45 OPT_PROTO_CHAT_TOPIC | OPT_PROTO_UNIQUE_CHATNAME |
46 OPT_PROTO_MAIL_CHECK | OPT_PROTO_PASSWORD_OPTIONAL, 46 OPT_PROTO_MAIL_CHECK | OPT_PROTO_PASSWORD_OPTIONAL |
47 OPT_PROTO_SLASH_COMMANDS_NATIVE,
47 #else 48 #else
48 OPT_PROTO_CHAT_TOPIC | OPT_PROTO_UNIQUE_CHATNAME | OPT_PROTO_MAIL_CHECK, 49 OPT_PROTO_CHAT_TOPIC | OPT_PROTO_UNIQUE_CHATNAME | OPT_PROTO_MAIL_CHECK |
50 OPT_PROTO_SLASH_COMMANDS_NATIVE,
49 #endif 51 #endif
50 NULL, /* user_splits */ 52 NULL, /* user_splits */
51 NULL, /* protocol_options */ 53 NULL, /* protocol_options */
52 {"png,gif,jpeg", 32, 32, 96, 96, 8191, PURPLE_ICON_SCALE_SEND | PURPLE_ICON_SCALE_DISPLAY}, /* icon_spec */ 54 {"png,gif,jpeg", 32, 32, 96, 96, 8191, PURPLE_ICON_SCALE_SEND | PURPLE_ICON_SCALE_DISPLAY}, /* icon_spec */
53 jabber_list_icon, /* list_icon */ 55 jabber_list_icon, /* list_icon */