Changes in / [be98957:e4f5ca8]
- Files:
-
- 4 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
rbe98957 re4f5ca8 645 645 *gcc* ) 646 646 echo CFLAGS+=-MMD -MF .depend/\$@.d >> Makefile.settings 647 for i in . lib protocols protocols/*/; do647 for i in . lib tests protocols protocols/*/; do 648 648 mkdir -p $i/.depend 649 649 done -
doc/user-guide/commands.xml
rbe98957 re4f5ca8 1784 1784 <bitlbee-command name="group"> 1785 1785 <short-description>Contact group management</short-description> 1786 <syntax>group list</syntax> 1787 1788 <description> 1789 <para> 1790 Only the <emphasis>group list</emphasis> command is supported at the moment, which shows a list of all groups defined so far. 1786 <syntax>group [ list | info <group> ]</syntax> 1787 1788 <description> 1789 <para> 1790 The <emphasis>group list</emphasis> command shows a list of all groups defined so far. 1791 </para> 1792 1793 <para> 1794 The <emphasis>group info</emphasis> command shows a list of all members of a the group <group>. 1791 1795 </para> 1792 1796 -
protocols/skype/README
rbe98957 re4f5ca8 145 145 === Configuring 146 146 147 - Set up `~/.skyped/skyped.conf`: Create the `~/.skyped` directory, copy 148 `skyped.conf` and `skyped.cnf` from 149 `/usr/local/etc/skyped/skyped.conf` to `~/.skyped`, adjust `username` 150 and `password`. The `username` should be your Skype login and the 151 `password` can be whatever you want, but you will have to specify that 152 one when adding the Skype account to BitlBee (see later). 153 154 NOTE: Here, and later - `/usr/local/etc` can be different on your installation 155 if you used the `--sysconfdir` switch when running bitlbee-skype's `configure`. 156 157 - Generate the SSL pem files: 158 159 ---- 160 # cd ~/.skyped 161 # openssl req -new -x509 -days 365 -nodes -config skyped.cnf -out skyped.cert.pem \ 162 -keyout skyped.key.pem 163 ---- 164 165 NOTE: Maybe you want to adjust the permissions in the `~/.skyped` 166 dir. For example make it readable by just your user. 167 168 - Start `skyped` (the tcp server): 169 170 ---- 171 $ skyped 172 ---- 173 174 - Start your `IRC` client, connect to BitlBee and add your account: 175 176 ---- 177 account add skype <user> <pass> 178 account skype set server localhost 179 ---- 180 181 <user> should be your Skype account name, <pass> should be the one you declared 182 in `skyped.conf`. If you want to run skyped on a remote machine, replace 183 `localhost` with the name of the machine. 184 185 If you are running skyped on a custom port: 186 187 ---- 188 account skype set port <port> 189 ---- 190 191 If you want to set your full name (optional): 192 193 ---- 194 account skype set display_name "John Smith" 195 ---- 196 197 If you want to see your skypeout contacts online as well (they are 198 offline by default): 199 200 ---- 201 account skype set skypeout_offline false 202 ---- 147 See the manpage of `skyped`. 203 148 204 149 == Setting up Skype in a VNC server (optional) -
protocols/skype/skype.c
rbe98957 re4f5ca8 46 46 enum { 47 47 SKYPE_FILETRANSFER_NEW = 1, 48 SKYPE_FILETRANSFER_TRANSFERRING, 49 SKYPE_FILETRANSFER_COMPLETED, 48 50 SKYPE_FILETRANSFER_FAILED 49 51 }; … … 81 83 /* Same for file transfers. */ 82 84 int filetransfer_status; 85 /* Path of the file being transferred. */ 86 char *filetransfer_path; 83 87 /* Using /j #nick we want to have a groupchat with two people. Usually 84 88 * not (default). */ … … 783 787 id); 784 788 sd->filetransfer_status = SKYPE_FILETRANSFER_FAILED; 789 } else if (!strcmp(info, "STATUS COMPLETED")) { 790 skype_printf(ic, "GET FILETRANSFER %s PARTNER_HANDLE\n", id); 791 sd->filetransfer_status = SKYPE_FILETRANSFER_COMPLETED; 792 } else if (!strcmp(info, "STATUS TRANSFERRING")) { 793 skype_printf(ic, "GET FILETRANSFER %s PARTNER_HANDLE\n", id); 794 sd->filetransfer_status = SKYPE_FILETRANSFER_TRANSFERRING; 795 } else if (!strncmp(info, "FILEPATH ", 9)) { 796 info += 9; 797 sd->filetransfer_path = g_strdup(info); 785 798 } else if (!strncmp(info, "PARTNER_HANDLE ", 15)) { 786 799 info += 15; … … 795 808 imcb_log(ic, "Failed to transfer file from user %s.", 796 809 info); 810 break; 811 case SKYPE_FILETRANSFER_COMPLETED: 812 imcb_log(ic, "File transfer from user %s completed.", info); 813 break; 814 case SKYPE_FILETRANSFER_TRANSFERRING: 815 if (sd->filetransfer_path) { 816 imcb_log(ic, "File transfer from user %s started, saving to %s.", info, sd->filetransfer_path); 817 g_free(sd->filetransfer_path); 818 sd->filetransfer_path = NULL; 819 } 797 820 break; 798 821 } -
protocols/skype/skyped.txt
rbe98957 re4f5ca8 20 20 == CONFIGURATION 21 21 22 See the README for information about how to configure this daemon. 22 - Set up `~/.skyped/skyped.conf`: Create the `~/.skyped` directory, copy 23 `skyped.conf` and `skyped.cnf` from `/usr/local/etc/skyped/` to `~/.skyped`, 24 adjust `username` and `password`. The `username` should be your Skype login and 25 the `password` can be whatever you want, but you will have to specify that one 26 when adding the Skype account to BitlBee (see later). 27 28 NOTE: Here, and later - `/usr/local/etc` can be different on your installation 29 if you used the `--sysconfdir` switch when running the `configure` of BitlBee. 30 31 - Generate the SSL pem files: 32 33 ---- 34 $ cd ~/.skyped 35 $ openssl req -new -x509 -days 365 -nodes -config skyped.cnf -out skyped.cert.pem \ 36 -keyout skyped.key.pem 37 ---- 38 39 - Start `skyped` (the TCP server), initially without detaching and enabling debug messages: 40 41 ---- 42 $ skyped -d -n 43 ---- 44 45 - Start your `IRC` client, connect to BitlBee and add your account: 46 47 ---- 48 account add skype <user> <pass> 49 ---- 50 51 `<user>` should be your Skype account name, `<pass>` should be the one you declared 52 in `skyped.conf`. 23 53 24 54 == OPTIONS -
protocols/skype/test.py
rbe98957 re4f5ca8 97 97 self.mock("called-no") 98 98 99 def testFiletransfer(self): 100 self.mock("filetransfer") 101 102 def testGroupRead(self): 103 self.mock("group-read") 104 99 105 if __name__ == '__main__': 100 106 unittest.main() -
root_commands.c
rbe98957 re4f5ca8 1290 1290 } 1291 1291 irc_rootmsg( irc, "End of group list" ); 1292 } 1293 else if( g_strncasecmp(cmd[1], "info", len ) == 0 ) 1294 { 1295 bee_group_t *bg; 1296 int n = 0; 1297 1298 MIN_ARGS(2); 1299 bg = bee_group_by_name( irc->b, cmd[2], FALSE ); 1300 1301 if( bg ) 1302 { 1303 if( strchr(irc->umode, 'b') ) 1304 irc_rootmsg( irc, "Members of %s:", cmd[2] ); 1305 for( l = irc->b->users; l; l = l->next ) 1306 { 1307 bee_user_t *bu = l->data; 1308 if( bu->group == bg ) 1309 irc_rootmsg( irc, "%d. %s", n ++, bu->nick ? : bu->handle ); 1310 } 1311 irc_rootmsg( irc, "End of member list" ); 1312 } 1313 else 1314 irc_rootmsg( irc, "Unknown group: %s. Please use \x02group list\x02 to get a list of available groups.", cmd[2] ); 1292 1315 } 1293 1316 else
Note: See TracChangeset
for help on using the changeset viewer.