aboutsummaryrefslogtreecommitdiffstats
path: root/skype/skype.c
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2008-04-03 00:44:01 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2008-04-03 00:44:01 +0200
commit51dc72dbd88fec640d9838171a4cc5f5d8430274 (patch)
tree2ee5a46dedcbfe0513af119c3625cb9a0d831b20 /skype/skype.c
parentc1f3d49c9f7c626f5e17c0c653c56d3d0e7e1831 (diff)
skype_set_call() allow calling anybody
- here is the logic: we first try to map nicks to skype user names. on success, we use the username, on failure we use the value we got directly, later skype will return an error if there is no such nick or such other error occures.
Diffstat (limited to 'skype/skype.c')
-rw-r--r--skype/skype.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/skype/skype.c b/skype/skype.c
index 1e436074..98de4ff7 100644
--- a/skype/skype.c
+++ b/skype/skype.c
@@ -998,13 +998,8 @@ static char *skype_set_call( set_t *set, char *value )
{
user_t *u = user_find(acc->irc, value);
/* We are starting a call */
- if(!u && strcmp(value, "echo123"))
- {
- imcb_error(ic, "%s - no such nick", value);
- return(value);
- }
- if(!strcmp(value, "echo123"))
- nick = g_strdup("echo123");
+ if(!u)
+ nick = g_strdup(value);
else
nick = g_strdup(u->handle);
ptr = strchr(nick, '@');