src/irc_client.c
branchmodules
changeset 55 6f7f6ae729d0
parent 53 12d806823775
child 63 d399a1d915a3
equal deleted inserted replaced
54:9f74e924b01a 55:6f7f6ae729d0
    68 
    68 
    69     // no such network
    69     // no such network
    70     return NULL;
    70     return NULL;
    71 }
    71 }
    72 
    72 
       
    73 struct irc_chan* irc_client_get_chan (struct irc_client *client, const char *network, const char *channel)
       
    74 {
       
    75     struct irc_net *net;
       
    76     
       
    77     // lookup network
       
    78     if ((net = irc_client_get_net(client, network)) == NULL)
       
    79         return NULL;
       
    80     
       
    81     // and then return channel lookup
       
    82     return irc_net_get_chan(net, channel);
       
    83 }
       
    84 
    73 err_t irc_client_quit (struct irc_client *client, const char *message)
    85 err_t irc_client_quit (struct irc_client *client, const char *message)
    74 {
    86 {
    75     struct irc_net *net;
    87     struct irc_net *net;
    76     err_t err;
    88     err_t err;
    77 
    89