diff src/protocols/oscar/util.c @ 13168:bdb8d7beb5a7

[gaim-migrate @ 15531] Sorry about that; the build bot is pickier than the static libgaim compilation I tested this on. I'll be sure to compile Gaim proper before committing in the future. committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 07 Feb 2006 19:50:14 +0000
parents 7d31d61e6438
children f2431a7e33aa
line wrap: on
line diff
--- a/src/protocols/oscar/util.c	Tue Feb 07 19:36:40 2006 +0000
+++ b/src/protocols/oscar/util.c	Tue Feb 07 19:50:14 2006 +0000
@@ -218,6 +218,21 @@
 	return 1;
 }
 
+/**
+ * Determine if a given screen name is an SMS number
+ * (i.e. it begins with a +).
+ *
+ * @sn A valid AIM or ICQ screen name.
+ * @return 1 if the screen name is an SMS number.  Otherwise 0
+ *         is returned.
+ */
+faim_export int aim_sn_is_sms(const char *sn)
+{
+	if (sn[0] != '+')
+		return 0;
+	return 1;
+}
+
 /*
 * int snlen(const char *)
 *