Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/pidgin-opensteamworks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreionrobb <eionrobb@8ca6c67d-4297-256d-f884-781da6d5760b>2012-02-13 13:40:56 +0400
committereionrobb <eionrobb@8ca6c67d-4297-256d-f884-781da6d5760b>2012-02-13 13:40:56 +0400
commitedbc75a550b48320c0d3e7081c1d06191b15275e (patch)
treeaa3ee302fb04a8cea0e459c83b2994de12806ecd
parent68601cc59b420f486e3ca114db87b292a5f9a7b9 (diff)
Don't add non-numeric friend id's when using the Add Buddy screen
-rw-r--r--steam-mobile/libsteam.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/steam-mobile/libsteam.c b/steam-mobile/libsteam.c
index 3279632..84912c9 100644
--- a/steam-mobile/libsteam.c
+++ b/steam-mobile/libsteam.c
@@ -866,7 +866,13 @@ steam_add_buddy(PurpleConnection *pc, PurpleBuddy *buddy, PurpleGroup *group)
{
SteamAccount *sa = pc->proto_data;
- steam_friend_action(sa, buddy->name, "add");
+ if (g_ascii_strtoull(buddy->name, NULL, 10))
+ {
+ steam_friend_action(sa, buddy->name, "add");
+ } else {
+ purple_blist_remove_buddy(buddy);
+ purple_notify_warning(pc, "Invalid friend id", "Invalid friend id", "Friend ID's must be numeric.\nTry searching from the account menu.");
+ }
}
void