Merge pull request #313 from isundil/master

Fix #45 Make it easy to delete default channels, servers and networks
This commit is contained in:
ailin-nemui 2015-11-09 16:45:19 +01:00
commit 6d6e672e8e
5 changed files with 40 additions and 0 deletions

View file

@ -29,6 +29,8 @@
#include "irc-servers.h"
#include "irc-chatnets.h"
#include "printtext.h"
#include "servers-setup.h"
#include "channels-setup.h"
static void cmd_network_list(void)
{
@ -183,6 +185,8 @@ static void cmd_network_remove(const char *data)
if (rec == NULL)
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_NETWORK_NOT_FOUND, data);
else {
server_setup_remove_chatnet(data);
channel_setup_remove_chatnet(data);
printformat(NULL, NULL, MSGLEVEL_CLIENTNOTICE, IRCTXT_NETWORK_REMOVED, data);
chatnet_remove(CHATNET(rec));
}