/[svn]/hopm/branches/1.1.x/src/irc.c
ViewVC logotype

Diff of /hopm/branches/1.1.x/src/irc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8137 by michael, Mon Apr 3 16:57:23 2017 UTC revision 8138 by michael, Tue Apr 4 17:01:34 2017 UTC
# Line 79  static time_t IRC_LASTRECONNECT; Line 79  static time_t IRC_LASTRECONNECT;
79   * Return: Pointer to ChannelConf containing the channel   * Return: Pointer to ChannelConf containing the channel
80   */   */
81  static const struct ChannelConf *  static const struct ChannelConf *
82  get_channel(const char *channel)  get_channel(const char *name)
83  {  {
84    node_t *node;    node_t *node;
85    
# Line 87  get_channel(const char *channel) Line 87  get_channel(const char *channel)
87    {    {
88      struct ChannelConf *item = node->data;      struct ChannelConf *item = node->data;
89    
90      if (strcasecmp(item->name, channel) == 0)      if (strcasecmp(item->name, name) == 0)
91        return item;        return item;
92    }    }
93    
# Line 472  irc_init(void) Line 472  irc_init(void)
472    {    {
473      struct sockaddr_in6 *in = (struct sockaddr_in6 *)&IRC_SVR;      struct sockaddr_in6 *in = (struct sockaddr_in6 *)&IRC_SVR;
474    
475      svr_addrlen = sizeof(struct sockaddr_in6);      svr_addrlen = sizeof(*in);
476      IRC_SVR.ss_family = AF_INET6;      IRC_SVR.ss_family = AF_INET6;
477      in->sin6_port = htons(IRCItem->port);      in->sin6_port = htons(IRCItem->port);
478      memcpy(&in->sin6_addr, address, sizeof(in->sin6_addr));      memcpy(&in->sin6_addr, address, sizeof(in->sin6_addr));
# Line 481  irc_init(void) Line 481  irc_init(void)
481    {    {
482      struct sockaddr_in *in = (struct sockaddr_in *)&IRC_SVR;      struct sockaddr_in *in = (struct sockaddr_in *)&IRC_SVR;
483    
484      svr_addrlen = sizeof(struct sockaddr_in);      svr_addrlen = sizeof(*in);
485      IRC_SVR.ss_family = AF_INET;      IRC_SVR.ss_family = AF_INET;
486      in->sin_port = htons(IRCItem->port);      in->sin_port = htons(IRCItem->port);
487      memcpy(&in->sin_addr, address, sizeof(in->sin_addr));      memcpy(&in->sin_addr, address, sizeof(in->sin_addr));
# Line 771  irc_cycle(void) Line 771  irc_cycle(void)
771    
772    if (IRC_FD == -1)    if (IRC_FD == -1)
773    {    {
774      /* Initialise negative cache. */      /* Initialize negative cache. */
775      if (OptionsItem->negcache)      if (OptionsItem->negcache)
776        negcache_init();        negcache_init();
777    

Legend:
Removed from v.8137  
changed lines
  Added in v.8138

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28