mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 15:26:37 +02:00
Aliases are executed before WeeChat/IRC commands, /builtin command added
This commit is contained in:
@@ -262,6 +262,16 @@ plugin_cmd_handler_add (t_weechat_plugin *plugin, char *command,
|
||||
WEECHAT_ERROR, plugin->name, command);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (ascii_strcasecmp (command, "builtin") == 0)
|
||||
{
|
||||
irc_display_prefix (NULL, NULL, PREFIX_ERROR);
|
||||
gui_printf (NULL,
|
||||
_("%s plugin %s: unable to add handler for \"%s\" command "
|
||||
"(forbidden)\n"),
|
||||
WEECHAT_ERROR, plugin->name, command);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
new_handler = (t_plugin_handler *)malloc (sizeof (t_plugin_handler));
|
||||
if (new_handler)
|
||||
|
||||
Reference in New Issue
Block a user