blob: 5177a72a05fea95ec9c78455584a48390a70b67b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include "config_servers.h"
void free_irc_server_conf(irc_server_conf *isc)
{
int i;
if (isc == NULL)
return;
if (isc->name)
free(isc->name);
if (isc->user)
free(isc->user);
if (isc->server)
free(isc->server);
if (isc->port)
free(isc->port);
for (i=0;i<16;i++) //em 16 is hardcoded mate
{
if (isc->channels[i])
free(isc->channels[i]);
}
//free(isc);
}
|