adium/adium
Clone
Summary
Browse
Changes
Graph
Merged matthewkotila/adium/tip into default
default
2016-09-05, Robbie
92fa28ff1873
Merged matthewkotila/adium/tip into default
Fixes #16970 ("Transition from SenTestingKit to XCTest") in order to build on OS X 10.11 / Xcode 7.2.
#import "oscar-adium.h"
void
oscar_reformat_screenname
(
PurpleConnection
*
gc
,
const
char
*
nick
)
{
OscarData
*
od
=
gc
->
proto_data
;
if
(
!
oscar_util_name_compare
(
purple_account_get_username
(
purple_connection_get_account
(
gc
)),
nick
))
{
if
(
!
flap_connection_getbytype
(
od
,
SNAC_FAMILY_ADMIN
))
{
od
->
setnick
=
TRUE
;
g_free
(
od
->
newformatting
);
od
->
newformatting
=
g_strdup
(
nick
);
aim_srv_requestnew
(
od
,
SNAC_FAMILY_ADMIN
);
}
else
{
aim_admin_setnick
(
od
,
flap_connection_getbytype
(
od
,
SNAC_FAMILY_ADMIN
),
nick
);
}
}
}