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:
@@ -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]);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user