Changes in / [e4f5ca8:be98957]


Ignore:
Files:
4 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • configure

    re4f5ca8 rbe98957  
    645645*gcc* )
    646646        echo CFLAGS+=-MMD -MF .depend/\$@.d >> Makefile.settings
    647         for i in . lib tests protocols protocols/*/; do
     647        for i in . lib protocols protocols/*/; do
    648648                mkdir -p $i/.depend
    649649        done
  • doc/user-guide/commands.xml

    re4f5ca8 rbe98957  
    17841784        <bitlbee-command name="group">
    17851785                <short-description>Contact group management</short-description>
    1786                 <syntax>group [ list | info &lt;group&gt; ]</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 &lt;group&gt;.
     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.
    17951791                        </para>
    17961792                       
  • protocols/skype/README

    re4f5ca8 rbe98957  
    145145=== Configuring
    146146
    147 See the manpage of `skyped`.
     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
     154NOTE: Here, and later - `/usr/local/etc` can be different on your installation
     155if 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
     165NOTE: Maybe you want to adjust the permissions in the `~/.skyped`
     166dir. 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----
     177account add skype <user> <pass>
     178account skype set server localhost
     179----
     180
     181<user> should be your Skype account name, <pass> should be the one you declared
     182in `skyped.conf`. If you want to run skyped on a remote machine, replace
     183`localhost` with the name of the machine.
     184
     185If you are running skyped on a custom port:
     186
     187----
     188account skype set port <port>
     189----
     190
     191If you want to set your full name (optional):
     192
     193----
     194account skype set display_name "John Smith"
     195----
     196
     197If you want to see your skypeout contacts online as well (they are
     198offline by default):
     199
     200----
     201account skype set skypeout_offline false
     202----
    148203
    149204== Setting up Skype in a VNC server (optional)
  • protocols/skype/skype.c

    re4f5ca8 rbe98957  
    4646enum {
    4747        SKYPE_FILETRANSFER_NEW = 1,
    48         SKYPE_FILETRANSFER_TRANSFERRING,
    49         SKYPE_FILETRANSFER_COMPLETED,
    5048        SKYPE_FILETRANSFER_FAILED
    5149};
     
    8381        /* Same for file transfers. */
    8482        int filetransfer_status;
    85         /* Path of the file being transferred. */
    86         char *filetransfer_path;
    8783        /* Using /j #nick we want to have a groupchat with two people. Usually
    8884         * not (default). */
     
    787783                        id);
    788784                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);
    798785        } else if (!strncmp(info, "PARTNER_HANDLE ", 15)) {
    799786                info += 15;
     
    808795                        imcb_log(ic, "Failed to transfer file from user %s.",
    809796                                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                         }
    820797                        break;
    821798                }
  • protocols/skype/skyped.txt

    re4f5ca8 rbe98957  
    2020== CONFIGURATION
    2121
    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`.
     22See the README for information about how to configure this daemon.
    5323
    5424== OPTIONS
  • protocols/skype/test.py

    re4f5ca8 rbe98957  
    9797                self.mock("called-no")
    9898
    99         def testFiletransfer(self):
    100                 self.mock("filetransfer")
    101 
    102         def testGroupRead(self):
    103                 self.mock("group-read")
    104 
    10599if __name__ == '__main__':
    106100        unittest.main()
  • root_commands.c

    re4f5ca8 rbe98957  
    12901290                }
    12911291                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] );
    13151292        }
    13161293        else
Note: See TracChangeset for help on using the changeset viewer.