Changeset 51dc72d


Ignore:
Timestamp:
2008-04-02T22:44:01Z (17 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
b054fad
Parents:
c1f3d49
Message:

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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    rc1f3d49 r51dc72d  
    999999                user_t *u = user_find(acc->irc, value);
    10001000                /* We are starting a call */
    1001                 if(!u && strcmp(value, "echo123"))
    1002                 {
    1003                         imcb_error(ic, "%s - no such nick", value);
    1004                         return(value);
    1005                 }
    1006                 if(!strcmp(value, "echo123"))
    1007                         nick = g_strdup("echo123");
     1001                if(!u)
     1002                        nick = g_strdup(value);
    10081003                else
    10091004                        nick = g_strdup(u->handle);
Note: See TracChangeset for help on using the changeset viewer.