1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

minor updates

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@696 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-09-29 23:57:30 +00:00 committed by cras
parent 359453abb0
commit 3eea53d2ee
6 changed files with 10 additions and 1 deletions

View File

@ -245,6 +245,7 @@ int server_start_connect(SERVER_REC *server)
if (pipe(server->connect_pipe) != 0) {
g_warning("server_connect(): pipe() failed.");
g_free(server->tag);
g_free(server->nick);
return FALSE;
}

View File

@ -940,6 +940,9 @@ void printtext_multiline(void *server, const char *channel, int level, const cha
{
char **lines, **tmp;
g_return_if_fail(format != NULL);
g_return_if_fail(text != NULL);
lines = g_strsplit(text, "\n", -1);
for (tmp = lines; *tmp != NULL; tmp++)
printtext(NULL, NULL, MSGLEVEL_NEVER, format, *tmp);

View File

@ -109,6 +109,7 @@ static void parse_channel_mode(IRC_CHANNEL_REC *channel, const char *mode,
return;
}
/* check if unwanted people got ops */
str = g_string_new(NULL);
dup = modestr = g_strdup(mode);

View File

@ -147,6 +147,8 @@ void ban_remove(IRC_CHANNEL_REC *channel, const char *bans)
GSList *tmp;
char **ban, **banlist;
g_return_if_fail(bans != NULL);
str = g_string_new(NULL);
banlist = g_strsplit(bans, " ", -1);
for (ban = banlist; *ban != NULL; ban++) {

View File

@ -131,7 +131,6 @@ IRC_SERVER_REC *irc_server_connect(IRC_SERVER_CONNECT_REC *conn)
if (!server_start_connect((SERVER_REC *) server)) {
server_connect_free(SERVER_CONNECT(conn));
g_free(server->nick);
g_free(server);
return NULL;
}

View File

@ -145,6 +145,9 @@ static IRC_SERVER_REC *notifylist_ison_serverlist(const char *nick, const char *
IRC_SERVER_REC *server;
char **list, **tmp;
g_return_val_if_fail(nick != NULL, NULL);
g_return_val_if_fail(taglist != NULL, NULL);
list = g_strsplit(taglist, " ", -1);
server = NULL;