mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 22:56:21 +00:00
Remove plugin window on /close
This commit is contained in:
@@ -580,6 +580,7 @@ wins_close_by_num(int i)
|
||||
case WIN_PLUGIN:
|
||||
{
|
||||
ProfPluginWin *pluginwin = (ProfPluginWin*)window;
|
||||
plugins_close_win(pluginwin->plugin_name, pluginwin->tag);
|
||||
autocomplete_remove(wins_ac, pluginwin->tag);
|
||||
autocomplete_remove(wins_close_ac, pluginwin->tag);
|
||||
break;
|
||||
@@ -681,12 +682,12 @@ wins_new_private(const char *const fulljid)
|
||||
}
|
||||
|
||||
ProfWin *
|
||||
wins_new_plugin(const char * const tag)
|
||||
wins_new_plugin(const char *const plugin_name, const char * const tag)
|
||||
{
|
||||
GList *keys = g_hash_table_get_keys(windows);
|
||||
int result = get_next_available_win_num(keys);
|
||||
g_list_free(keys);
|
||||
ProfWin *newwin = win_create_plugin(tag);
|
||||
ProfWin *newwin = win_create_plugin(plugin_name, tag);
|
||||
g_hash_table_insert(windows, GINT_TO_POINTER(result), newwin);
|
||||
autocomplete_add(wins_ac, tag);
|
||||
autocomplete_add(wins_close_ac, tag);
|
||||
|
||||
Reference in New Issue
Block a user