/[weechat]/weechat/src/irc/irc-server.c
ViewVC logotype

Diff of /weechat/src/irc/irc-server.c

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

revision 1.64 by flashcode, Sat Jul 2 16:01:02 2005 UTC revision 1.65 by flashcode, Mon Jul 11 12:14:57 2005 UTC
# Line 150  server_init_with_url (char *irc_url, t_i Line 150  server_init_with_url (char *irc_url, t_i
150      else      else
151          return -1;          return -1;
152            
153      url = strdup (irc_url);      url = strdup (pos);
154      pos_server = strchr (url, '@');      pos_server = strchr (url, '@');
155      if (pos_server)      if (pos_server)
156      {      {
# Line 161  server_init_with_url (char *irc_url, t_i Line 161  server_init_with_url (char *irc_url, t_i
161              free (url);              free (url);
162              return -1;              return -1;
163          }          }
164          pos2 = strchr (pos, ':');          pos2 = strchr (url, ':');
165          if (pos2)          if (pos2)
166          {          {
167              pos2[0] = '\0';              pos2[0] = '\0';
168              server->password = strdup (pos2 + 1);              server->password = strdup (pos2 + 1);
169          }          }
170          server->nick1 = strdup (pos);          server->nick1 = strdup (url);
171      }      }
172      else      else
173      {      {
# Line 182  server_init_with_url (char *irc_url, t_i Line 182  server_init_with_url (char *irc_url, t_i
182              free (url);              free (url);
183              return -1;              return -1;
184          }          }
185          pos_server = url + 6;          pos_server = url;
186      }      }
187      if (!pos_server[0])      if (!pos_server[0])
188      {      {

Legend:
Removed from v.1.64  
changed lines
  Added in v.1.65

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26