Changeset f539d6e for protocols/skype
- Timestamp:
- 2013-05-01T18:55:50Z (12 years ago)
- Branches:
- master
- Children:
- af496d8
- Parents:
- dd95ce4 (diff), c2a863d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- protocols/skype
- Files:
-
- 8 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/skype/README
rdd95ce4 rf539d6e 58 58 connects to Skype, finally BitlBee can connect to `skyped`. 59 59 60 === Installing under Frugalware or Debian 61 62 - Install the necessary packages: 63 64 ---- 65 # pacman-g2 -S bitlbee-skype 66 ---- 67 68 or 60 === Installing 61 62 Either use your package manager to install the Skype plugin, using something 63 like: 69 64 70 65 ---- … … 72 67 ---- 73 68 74 (the later from the unstable repo) 75 76 and you don't have to compile anything manually. 77 78 === Installing under OS X 79 80 - Install the necessary packages from ports: 81 82 NOTE: You have to edit the Portfile manually to include the install-dev target, 83 just append install-dev after install-etc. 84 85 ---- 86 # port -v install bitlbee 87 ---- 88 89 and you have to install `bitlbee-skype` and `skype4py` from 90 source. 91 92 === Installing from source 93 94 NOTE: bitlbee-skype by default builds and installs skyped and the 95 plugin. In case you just want to install the plugin for a public server 96 or you want to use skyped with a public server (like 97 `bitlbee1.asnetinc.net`), you don't need both. 98 99 - You need the latest stable BitlBee release (unless you want to use a 100 public server): 101 102 ---- 103 $ wget http://get.bitlbee.org/src/bitlbee-@BITLBEE_VERSION@.tar.gz 104 $ tar xf bitlbee-@BITLBEE_VERSION@.tar.gz 105 $ cd bitlbee-@BITLBEE_VERSION@ 106 ---- 107 108 - Now compile and install it: 109 110 ---- 111 $ ./configure 112 $ make 113 # make install install-dev 114 ---- 115 116 - To install http://skype4py.sourceforge.net/[Skype4Py] from source 117 (unless you want to install the plugin for a public server): 118 119 ---- 120 $ tar -zxvf Skype4Py-x.x.x.x.tar.gz 121 $ cd Skype4Py-x.x.x.x 122 # python setup.py install 123 ---- 124 125 - Get the plugin code (in an empty dir, or whereever you want, it does 126 not matter): 127 128 ---- 129 $ wget http://vmiklos.hu/project/bitlbee-skype/bitlbee-skype-@VERSION@.tar.gz 130 $ tar xf bitlbee-skype-@VERSION@.tar.gz 131 $ cd bitlbee-skype-@VERSION@ 132 ---- 133 134 - Compile and install it: 135 136 ---- 137 $ ./configure 138 $ make 139 # make install 140 ---- 141 142 This will install the plugin to where BitlBee expects them, which is 143 `/usr/local/lib/bitlbee` if you installed BitlBee from source. 69 Or install http://sourceforge.net/projects/skype4py/[Skype4Py], and build 70 BitlBee with `--skype=1`. 144 71 145 72 === Configuring -
protocols/skype/skype.c
rdd95ce4 rf539d6e 344 344 ptr++; 345 345 if (!strncmp(ptr, "ONLINESTATUS ", 13)) { 346 if (!strcmp(user, sd->username))347 348 346 if (!strlen(user) || !strcmp(user, sd->username)) 347 return; 348 if (!set_getbool(&ic->acc->set, "test_join") 349 349 && !strcmp(user, "echo123")) 350 350 return; 351 351 ptr = g_strdup_printf("%s@skype.com", user); 352 352 imcb_add_buddy(ic, ptr, skype_group_by_username(ic, user)); … … 1016 1016 } 1017 1017 } else if (!strncmp(info, "MEMBERS ", 8) || !strncmp(info, "ACTIVEMEMBERS ", 14) ) { 1018 info += 8; 1018 if (!strncmp(info, "MEMBERS ", 8)) 1019 info += 8; 1020 else 1021 info += 14; 1019 1022 gc = bee_chat_by_title(ic->bee, ic, id); 1020 1023 /* Hack! We set ->data to TRUE … … 1564 1567 1565 1568 s = set_add(&acc->set, "mood_text", NULL, skype_set_mood_text, acc); 1566 s->flags |= ACC_SET_NOSAVE | ACC_SET_ONLINE_ONLY;1569 s->flags |= SET_NOSAVE | ACC_SET_ONLINE_ONLY; 1567 1570 1568 1571 s = set_add(&acc->set, "call", NULL, skype_set_call, acc); -
protocols/skype/skyped.py
rdd95ce4 rf539d6e 273 273 if options.log: 274 274 sock = open(options.log, "a") 275 sock.write( prefix + ": " + sanitized)275 sock.write("%s: %s\n" % (prefix, sanitized)) 276 276 sock.close() 277 277 -
protocols/skype/test.py
rdd95ce4 rf539d6e 113 113 self.mock("groupchat-leave") 114 114 115 def testGroupchatMsg(self): 116 self.mock("groupchat-msg") 117 118 def testGroupchatTopic(self): 119 self.mock("groupchat-topic") 120 115 121 def testCalledYes(self): 116 122 self.mock("called-yes") … … 125 131 self.mock("group-read") 126 132 133 def testGroupAdd(self): 134 self.mock("group-add") 135 127 136 def testCtcpHelp(self): 128 137 self.mock("ctcp-help") … … 130 139 def testSetMoodText(self): 131 140 self.mock("set-mood-text") 141 142 def testAwaySet(self): 143 self.mock("away-set") 132 144 133 145 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.