mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 13:56:37 +02:00
Fixed bug with IRC URL on command line (irc://)
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2005-07-09
|
||||
ChangeLog - 2005-07-11
|
||||
|
||||
|
||||
Versoin 0.1.4 (under dev!):
|
||||
* fixed bug with IRC URL on command line (irc://)
|
||||
* new keyboard management: keys are setup in config file, new command
|
||||
/key was added and some new default keys were added
|
||||
* added seconds in infobar time (optional thanks to new setting)
|
||||
|
||||
@@ -150,7 +150,7 @@ server_init_with_url (char *irc_url, t_irc_server *server)
|
||||
else
|
||||
return -1;
|
||||
|
||||
url = strdup (irc_url);
|
||||
url = strdup (pos);
|
||||
pos_server = strchr (url, '@');
|
||||
if (pos_server)
|
||||
{
|
||||
@@ -161,13 +161,13 @@ server_init_with_url (char *irc_url, t_irc_server *server)
|
||||
free (url);
|
||||
return -1;
|
||||
}
|
||||
pos2 = strchr (pos, ':');
|
||||
pos2 = strchr (url, ':');
|
||||
if (pos2)
|
||||
{
|
||||
pos2[0] = '\0';
|
||||
server->password = strdup (pos2 + 1);
|
||||
}
|
||||
server->nick1 = strdup (pos);
|
||||
server->nick1 = strdup (url);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -182,7 +182,7 @@ server_init_with_url (char *irc_url, t_irc_server *server)
|
||||
free (url);
|
||||
return -1;
|
||||
}
|
||||
pos_server = url + 6;
|
||||
pos_server = url;
|
||||
}
|
||||
if (!pos_server[0])
|
||||
{
|
||||
|
||||
+2
-1
@@ -1,10 +1,11 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2005-07-09
|
||||
ChangeLog - 2005-07-11
|
||||
|
||||
|
||||
Versoin 0.1.4 (under dev!):
|
||||
* fixed bug with IRC URL on command line (irc://)
|
||||
* new keyboard management: keys are setup in config file, new command
|
||||
/key was added and some new default keys were added
|
||||
* added seconds in infobar time (optional thanks to new setting)
|
||||
|
||||
@@ -150,7 +150,7 @@ server_init_with_url (char *irc_url, t_irc_server *server)
|
||||
else
|
||||
return -1;
|
||||
|
||||
url = strdup (irc_url);
|
||||
url = strdup (pos);
|
||||
pos_server = strchr (url, '@');
|
||||
if (pos_server)
|
||||
{
|
||||
@@ -161,13 +161,13 @@ server_init_with_url (char *irc_url, t_irc_server *server)
|
||||
free (url);
|
||||
return -1;
|
||||
}
|
||||
pos2 = strchr (pos, ':');
|
||||
pos2 = strchr (url, ':');
|
||||
if (pos2)
|
||||
{
|
||||
pos2[0] = '\0';
|
||||
server->password = strdup (pos2 + 1);
|
||||
}
|
||||
server->nick1 = strdup (pos);
|
||||
server->nick1 = strdup (url);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -182,7 +182,7 @@ server_init_with_url (char *irc_url, t_irc_server *server)
|
||||
free (url);
|
||||
return -1;
|
||||
}
|
||||
pos_server = url + 6;
|
||||
pos_server = url;
|
||||
}
|
||||
if (!pos_server[0])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user