Changeset 06eef80
- Timestamp:
- 2013-02-21T14:03:15Z (12 years ago)
- Branches:
- master
- Children:
- a5c6ebd
- Parents:
- 12f500f
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/account.h
r12f500f r06eef80 70 70 ACC_FLAG_AWAY_MESSAGE = 0x01, /* Supports away messages instead of just states. */ 71 71 ACC_FLAG_STATUS_MESSAGE = 0x02, /* Supports status messages (without being away). */ 72 ACC_FLAG_HANDLE_DOMAINS = 0x04, /* Contact handles need a domain portion. */ 72 73 } account_flag_t; 73 74 -
protocols/jabber/jabber.c
r12f500f r06eef80 96 96 s->flags |= ACC_SET_OFFLINE_ONLY; 97 97 98 acc->flags |= ACC_FLAG_AWAY_MESSAGE | ACC_FLAG_STATUS_MESSAGE; 98 acc->flags |= ACC_FLAG_AWAY_MESSAGE | ACC_FLAG_STATUS_MESSAGE | 99 ACC_FLAG_HANDLE_DOMAINS; 99 100 } 100 101 -
protocols/jabber/jabber.h
r12f500f r06eef80 196 196 }; 197 197 198 #define JABBER_XMLCONSOLE_HANDLE " xmlconsole"198 #define JABBER_XMLCONSOLE_HANDLE "_xmlconsole" 199 199 #define JABBER_OAUTH_HANDLE "jabber_oauth" 200 200 -
protocols/msn/msn.c
r12f500f r06eef80 44 44 set_add( &acc->set, "switchboard_keepalives", "false", set_eval_bool, acc ); 45 45 46 acc->flags |= ACC_FLAG_AWAY_MESSAGE | ACC_FLAG_STATUS_MESSAGE; 46 acc->flags |= ACC_FLAG_AWAY_MESSAGE | ACC_FLAG_STATUS_MESSAGE | 47 ACC_FLAG_HANDLE_DOMAINS; 47 48 } 48 49 -
root_commands.c
r12f500f r06eef80 680 680 account_t *a; 681 681 int add_on_server = 1; 682 char *handle = NULL, *s; 682 683 683 684 if( g_strcasecmp( cmd[1], "-tmp" ) == 0 ) … … 715 716 nick_set_raw( a, cmd[2], cmd[3] ); 716 717 } 718 } 719 720 if( ( a->flags & ACC_FLAG_HANDLE_DOMAINS ) && cmd[2][0] != '_' && 721 ( !( s = strchr( cmd[2], '@' ) ) || s[1] == '\0' ) ) 722 { 723 /* If there's no @ or it's the last char, append the user's 724 domain name now. Exclude handles starting with a _ so 725 adding _xmlconsole will keep working. */ 726 if( s ) 727 *s = '\0'; 728 if( ( s = strchr( a->user, '@' ) ) ) 729 cmd[2] = handle = g_strconcat( cmd[2], s, NULL ); 717 730 } 718 731 … … 746 759 } 747 760 761 g_free( handle ); 748 762 } 749 763
Note: See TracChangeset
for help on using the changeset viewer.