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:
parent
359453abb0
commit
3eea53d2ee
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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++) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user