mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 21:36:37 +02:00
Fixed /alias command (now ok with an alias name: display content)
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2006-05-20
|
||||
ChangeLog - 2006-05-21
|
||||
|
||||
Version 0.1.9 (under dev!):
|
||||
* fixed /alias command (with an alias name, display content)
|
||||
* improved lua plugin detection (bug #16574)
|
||||
* added backtrace when WeeChat crashes, log file automatically renamed
|
||||
* added lock for log file (~/.weechat/weechat.log), only one WeeChat
|
||||
|
||||
+356
-349
File diff suppressed because it is too large
Load Diff
@@ -1226,19 +1226,18 @@ weechat_cmd_alias (t_irc_server *server, t_irc_channel *channel,
|
||||
if (ptr_alias)
|
||||
{
|
||||
gui_printf (NULL, "\n");
|
||||
gui_printf (NULL, _("List of aliases:\n"));
|
||||
gui_printf (NULL, _("Alias:\n"));
|
||||
gui_printf (NULL, " %s %s=>%s %s\n",
|
||||
ptr_alias->alias_name,
|
||||
GUI_COLOR(COLOR_WIN_CHAT_DARK),
|
||||
GUI_COLOR(COLOR_WIN_CHAT),
|
||||
ptr_alias->alias_command);
|
||||
return 0;
|
||||
}
|
||||
|
||||
irc_display_prefix (NULL, NULL, PREFIX_ERROR);
|
||||
gui_printf (NULL, _("%s missing arguments for \"%s\" command\n"),
|
||||
WEECHAT_ERROR, "alias");
|
||||
return -1;
|
||||
else
|
||||
{
|
||||
irc_display_prefix (NULL, NULL, PREFIX_INFO);
|
||||
gui_printf (NULL, _("No alias found.\n"));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
+2
-1
@@ -1,9 +1,10 @@
|
||||
WeeChat - Wee Enhanced Environment for Chat
|
||||
===========================================
|
||||
|
||||
ChangeLog - 2006-05-20
|
||||
ChangeLog - 2006-05-21
|
||||
|
||||
Version 0.1.9 (under dev!):
|
||||
* fixed /alias command (with an alias name, display content)
|
||||
* improved lua plugin detection (bug #16574)
|
||||
* added backtrace when WeeChat crashes, log file automatically renamed
|
||||
* added lock for log file (~/.weechat/weechat.log), only one WeeChat
|
||||
|
||||
+358
-350
File diff suppressed because it is too large
Load Diff
+358
-350
File diff suppressed because it is too large
Load Diff
+361
-354
File diff suppressed because it is too large
Load Diff
+363
-356
File diff suppressed because it is too large
Load Diff
+358
-350
File diff suppressed because it is too large
Load Diff
+362
-354
File diff suppressed because it is too large
Load Diff
+356
-349
File diff suppressed because it is too large
Load Diff
@@ -1226,19 +1226,18 @@ weechat_cmd_alias (t_irc_server *server, t_irc_channel *channel,
|
||||
if (ptr_alias)
|
||||
{
|
||||
gui_printf (NULL, "\n");
|
||||
gui_printf (NULL, _("List of aliases:\n"));
|
||||
gui_printf (NULL, _("Alias:\n"));
|
||||
gui_printf (NULL, " %s %s=>%s %s\n",
|
||||
ptr_alias->alias_name,
|
||||
GUI_COLOR(COLOR_WIN_CHAT_DARK),
|
||||
GUI_COLOR(COLOR_WIN_CHAT),
|
||||
ptr_alias->alias_command);
|
||||
return 0;
|
||||
}
|
||||
|
||||
irc_display_prefix (NULL, NULL, PREFIX_ERROR);
|
||||
gui_printf (NULL, _("%s missing arguments for \"%s\" command\n"),
|
||||
WEECHAT_ERROR, "alias");
|
||||
return -1;
|
||||
else
|
||||
{
|
||||
irc_display_prefix (NULL, NULL, PREFIX_INFO);
|
||||
gui_printf (NULL, _("No alias found.\n"));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user