summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2015-11-09 16:45:19 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2015-11-09 16:45:19 +0100
commit6d6e672e8e27469bd08704edb96c3e0fa9ef898f (patch)
tree08feb06a1f5316661b614e18f32878c8404e3a78 /src/fe-common
parent0188c1fb5d85fa0dc05114afaff44ff0aa9d7f87 (diff)
parentef1a09b87d5df7fcaeced70e09312c225d99c4b6 (diff)
downloadirssi-6d6e672e8e27469bd08704edb96c3e0fa9ef898f.zip
Merge pull request #313 from isundil/master
Fix #45 Make it easy to delete default channels, servers and networks
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/irc/fe-ircnet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fe-common/irc/fe-ircnet.c b/src/fe-common/irc/fe-ircnet.c
index bb0af313..4d7037d5 100644
--- a/src/fe-common/irc/fe-ircnet.c
+++ b/src/fe-common/irc/fe-ircnet.c
@@ -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));
}