mirror of
https://github.com/irssi/irssi.git
synced 2026-08-09 11:50:10 +02:00
Merge pull request #313 from isundil/master
Fix #45 Make it easy to delete default channels, servers and networks
This commit is contained in:
commit
6d6e672e8e
5 changed files with 40 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue