src/protocols/jabber/jabber.c

changeset 12658
4aa7a873628d
parent 12646
1cf7cd03ada3
child 12686
ec3e7c4ff045
equal deleted inserted replaced
12657:fd16423a0383 12658:4aa7a873628d
1080 { 1080 {
1081 GaimStatusType *type; 1081 GaimStatusType *type;
1082 GList *types = NULL; 1082 GList *types = NULL;
1083 GaimValue *priority_value; 1083 GaimValue *priority_value;
1084 1084
1085 type = gaim_status_type_new_with_attrs(GAIM_STATUS_OFFLINE,
1086 jabber_buddy_state_get_status_id(JABBER_BUDDY_STATE_UNAVAILABLE),
1087 NULL, FALSE, TRUE, FALSE,
1088 "message", _("Message"), gaim_value_new(GAIM_TYPE_STRING),
1089 NULL);
1090 types = g_list_append(types, type);
1091
1092 priority_value = gaim_value_new(GAIM_TYPE_INT); 1085 priority_value = gaim_value_new(GAIM_TYPE_INT);
1093 gaim_value_set_int(priority_value, 1); 1086 gaim_value_set_int(priority_value, 1);
1094 type = gaim_status_type_new_with_attrs(GAIM_STATUS_AVAILABLE, 1087 type = gaim_status_type_new_with_attrs(GAIM_STATUS_AVAILABLE,
1095 jabber_buddy_state_get_status_id(JABBER_BUDDY_STATE_ONLINE), 1088 jabber_buddy_state_get_status_id(JABBER_BUDDY_STATE_ONLINE),
1096 NULL, TRUE, TRUE, FALSE, 1089 NULL, TRUE, TRUE, FALSE,
1141 1134
1142 /* 1135 /*
1143 if(js->protocol_version == JABBER_PROTO_0_9) 1136 if(js->protocol_version == JABBER_PROTO_0_9)
1144 m = g_list_append(m, _("Invisible")); 1137 m = g_list_append(m, _("Invisible"));
1145 */ 1138 */
1139
1140 type = gaim_status_type_new_with_attrs(GAIM_STATUS_OFFLINE,
1141 jabber_buddy_state_get_status_id(JABBER_BUDDY_STATE_UNAVAILABLE),
1142 NULL, FALSE, TRUE, FALSE,
1143 "message", _("Message"), gaim_value_new(GAIM_TYPE_STRING),
1144 NULL);
1145 types = g_list_append(types, type);
1146 1146
1147 return types; 1147 return types;
1148 } 1148 }
1149 1149
1150 static void 1150 static void

mercurial