1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 23:06:38 +02:00

irc: use a more explicit error when the creation of a temporary server failed

This commit is contained in:
Sebastien Helleu
2014-02-13 10:06:25 +01:00
parent f057e86390
commit f821a94cc4
15 changed files with 179 additions and 150 deletions
+3 -2
View File
@@ -1162,8 +1162,9 @@ irc_command_connect (void *data, struct t_gui_buffer *buffer, int argc,
if (!ptr_server)
{
weechat_printf (NULL,
_("%s%s: unable to create server "
"\"%s\""),
_("%s%s: unable to create temporary "
"server \"%s\" (check if there is "
"already a server with this name)"),
weechat_prefix ("error"),
IRC_PLUGIN_NAME, argv[i]);
}
-7
View File
@@ -1259,13 +1259,6 @@ irc_server_alloc_with_url (const char *irc_url)
}
}
}
else
{
weechat_printf (NULL,
_("%s%s: error creating new server \"%s\""),
weechat_prefix ("error"), IRC_PLUGIN_NAME,
pos_address);
}
free (irc_url2);
+3 -2
View File
@@ -210,8 +210,9 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
if (!irc_server_alloc_with_url (argv[i]))
{
weechat_printf (NULL,
_("%s%s: error with server from URL "
"(\"%s\"), ignored"),
_("%s%s: unable to create temporary server "
"\"%s\" (check if there is already a server "
"with this name)"),
weechat_prefix ("error"), IRC_PLUGIN_NAME,
argv[i]);
}