1
0
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:
Sebastien Helleu
2006-03-21 11:41:02 +00:00
parent 6a55ee4f79
commit 27fd4beca7
32 changed files with 2670 additions and 2276 deletions
+10
View File
@@ -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)