mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +02:00
Updated server removal
Removing network will also remove attached channels
This commit is contained in:
parent
2ad6bb1295
commit
6ca7dc6847
5 changed files with 40 additions and 28 deletions
|
|
@ -86,6 +86,21 @@ static void channel_setup_destroy(CHANNEL_SETUP_REC *channel)
|
|||
g_free(channel);
|
||||
}
|
||||
|
||||
void channel_setup_remove_chatnet(const char *chatnet)
|
||||
{
|
||||
GSList *tmp, *next;
|
||||
|
||||
g_return_if_fail(chatnet != NULL);
|
||||
|
||||
for (tmp = setupchannels; tmp != NULL; tmp = next) {
|
||||
CHANNEL_SETUP_REC *rec = tmp->data;
|
||||
|
||||
next = tmp->next;
|
||||
if (g_ascii_strcasecmp(rec->chatnet, chatnet) == 0)
|
||||
channel_setup_remove(rec);
|
||||
}
|
||||
}
|
||||
|
||||
void channel_setup_remove(CHANNEL_SETUP_REC *channel)
|
||||
{
|
||||
channel_config_remove(channel);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue