mirror of
https://github.com/weechat/weechat.git
synced 2026-07-08 18:53:12 +02:00
Removed WeeChat "command" structure, now all internal commands are hooked when WeeChat starts
This commit is contained in:
@@ -306,7 +306,7 @@ alias_new (char *name, char *command)
|
||||
|
||||
if ((new_alias = ((struct t_alias *) malloc (sizeof (struct t_alias)))))
|
||||
{
|
||||
new_hook = weechat_hook_command (name, NULL, NULL, NULL, NULL,
|
||||
new_hook = weechat_hook_command (name, "[alias]", NULL, NULL, NULL,
|
||||
alias_cb, new_alias);
|
||||
if (!new_hook)
|
||||
{
|
||||
@@ -724,6 +724,7 @@ weechat_plugin_end ()
|
||||
{
|
||||
alias_config_write ();
|
||||
alias_free_all ();
|
||||
weechat_config_free (alias_config_file);
|
||||
weechat_unhook (alias_command);
|
||||
weechat_unhook (unalias_command);
|
||||
return PLUGIN_RC_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user