mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +02:00
source cleanup: remove trailing whitespaces
This commit is contained in:
parent
503cbeb330
commit
51239925ec
44 changed files with 92 additions and 92 deletions
|
|
@ -309,7 +309,7 @@ static void cmd_unban(const char *data, IRC_SERVER_REC *server, void *item)
|
|||
ban = g_strdup(BAN_LAST);
|
||||
|
||||
command_set_ban(ban ? ban : data, server, item, FALSE, 0);
|
||||
|
||||
|
||||
g_free(ban);
|
||||
|
||||
cmd_params_free(free_arg);
|
||||
|
|
|
|||
|
|
@ -123,10 +123,10 @@ static void channel_change_topic(IRC_SERVER_REC *server, const char *channel,
|
|||
{
|
||||
CHANNEL_REC *chanrec;
|
||||
char *recoded = NULL;
|
||||
|
||||
|
||||
chanrec = channel_find(SERVER(server), channel);
|
||||
if (chanrec == NULL) return;
|
||||
/* the topic may be send out encoded, so we need to
|
||||
/* the topic may be send out encoded, so we need to
|
||||
recode it back or /topic <tab> will not work properly */
|
||||
recoded = recode_in(SERVER(server), topic, channel);
|
||||
if (topic != NULL) {
|
||||
|
|
@ -137,7 +137,7 @@ static void channel_change_topic(IRC_SERVER_REC *server, const char *channel,
|
|||
|
||||
g_free_not_null(chanrec->topic_by);
|
||||
chanrec->topic_by = g_strdup(setby);
|
||||
|
||||
|
||||
chanrec->topic_time = settime;
|
||||
|
||||
signal_emit("channel topic changed", 1, chanrec);
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ static int channel_rejoin(IRC_SERVER_REC *server, const char *channel)
|
|||
channel_destroy(CHANNEL(chanrec));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
rec = rejoin_find(server, channel);
|
||||
if (rec != NULL) {
|
||||
/* already exists */
|
||||
|
|
|
|||
|
|
@ -114,7 +114,7 @@ static void irc_channels_join(IRC_SERVER_REC *server, const char *data,
|
|||
use_keys = TRUE;
|
||||
key = schannel->password;
|
||||
} else key = NULL;
|
||||
|
||||
|
||||
g_string_append_printf(outkeys, "%s,", get_join_key(key));
|
||||
channame = channel + (channel[0] == '!' &&
|
||||
channel[1] == '!');
|
||||
|
|
@ -126,11 +126,11 @@ static void irc_channels_join(IRC_SERVER_REC *server, const char *data,
|
|||
|
||||
if (*tmpkey != NULL)
|
||||
tmpkey++;
|
||||
|
||||
|
||||
tmpstr = tmp;
|
||||
tmpstr++;
|
||||
cmdlen = outchans->len-1;
|
||||
|
||||
|
||||
if (use_keys)
|
||||
cmdlen += outkeys->len;
|
||||
if (*tmpstr != NULL)
|
||||
|
|
@ -138,8 +138,8 @@ static void irc_channels_join(IRC_SERVER_REC *server, const char *data,
|
|||
strlen(*tmpstr)+1;
|
||||
if (*tmpkey != NULL)
|
||||
cmdlen += strlen(*tmpkey);
|
||||
|
||||
/* don't try to send too long lines
|
||||
|
||||
/* don't try to send too long lines
|
||||
make sure it's not longer than 510
|
||||
so 510 - strlen("JOIN ") = 505 */
|
||||
if (cmdlen < 505)
|
||||
|
|
|
|||
|
|
@ -790,7 +790,7 @@ static void cmd_knockout(const char *data, IRC_SERVER_REC *server,
|
|||
|
||||
bancmd = *banmasks == '\0'? NULL :
|
||||
g_strdup_printf("%s %s", channel->name, banmasks);
|
||||
|
||||
|
||||
if (settings_get_bool("kick_first_on_kickban")) {
|
||||
signal_emit("command kick", 3, kickcmd, server, channel);
|
||||
if (bancmd != NULL)
|
||||
|
|
@ -894,7 +894,7 @@ static void cmd_accept(const char *data, IRC_SERVER_REC *server)
|
|||
{
|
||||
CMD_IRC_SERVER(server);
|
||||
|
||||
if (*data == '\0')
|
||||
if (*data == '\0')
|
||||
irc_send_cmd(server, "ACCEPT *");
|
||||
else
|
||||
irc_send_cmdv(server, "ACCEPT %s", data);
|
||||
|
|
@ -905,7 +905,7 @@ static void cmd_unsilence(const char *data, IRC_SERVER_REC *server)
|
|||
{
|
||||
CMD_IRC_SERVER(server);
|
||||
|
||||
if (*data == '\0')
|
||||
if (*data == '\0')
|
||||
cmd_return_error(CMDERR_NOT_ENOUGH_PARAMS);
|
||||
|
||||
irc_send_cmdv(server, "SILENCE -%s", data);
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ static void event_end_of_names(IRC_SERVER_REC *server, const char *data)
|
|||
IRC_CHANNEL_REC *chanrec;
|
||||
NICK_REC *ownnick;
|
||||
int nicks;
|
||||
|
||||
|
||||
g_return_if_fail(server != NULL);
|
||||
|
||||
params = event_get_params(data, 2, NULL, &channel);
|
||||
|
|
@ -384,7 +384,7 @@ static void event_nick_in_use(IRC_SERVER_REC *server, const char *data)
|
|||
|
||||
cmd = g_strdup_printf("NICK %s", server->nick);
|
||||
irc_send_cmd_now(server, cmd);
|
||||
g_free(cmd);
|
||||
g_free(cmd);
|
||||
}
|
||||
|
||||
static void event_target_unavailable(IRC_SERVER_REC *server, const char *data)
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ static void sig_connected(IRC_SERVER_REC *server)
|
|||
return;
|
||||
|
||||
if (server->connrec->away_reason != NULL)
|
||||
irc_server_send_away(server, server->connrec->away_reason);
|
||||
irc_server_send_away(server, server->connrec->away_reason);
|
||||
}
|
||||
|
||||
static void event_nick_collision(IRC_SERVER_REC *server, const char *data)
|
||||
|
|
|
|||
|
|
@ -753,7 +753,7 @@ static void event_isupport(IRC_SERVER_REC *server, const char *data)
|
|||
char **item, *sptr, *eptr;
|
||||
char **isupport;
|
||||
gpointer key, value;
|
||||
|
||||
|
||||
g_return_if_fail(server != NULL);
|
||||
|
||||
server->isupport_sent = TRUE;
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ static void sig_session_save_server(IRC_SERVER_REC *server, CONFIG_REC *config,
|
|||
isupport = config_node_section(node, "isupport", NODE_TYPE_BLOCK);
|
||||
isupport_data.config = config;
|
||||
isupport_data.node = isupport;
|
||||
|
||||
|
||||
g_hash_table_foreach(server->isupport, (GHFunc) session_isupport_foreach, &isupport_data);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ void prefix_add(char prefixes[MAX_USER_PREFIXES+1], char newprefix, SERVER_REC *
|
|||
|
||||
if (*prefixlst == newprefix)
|
||||
break; /* insert the new prefix here */
|
||||
|
||||
|
||||
if (*prefixlst == prefixes[oldpos]) {
|
||||
/* this prefix is present.
|
||||
* the one we are inserting goes after it.
|
||||
|
|
@ -88,7 +88,7 @@ void prefix_add(char prefixes[MAX_USER_PREFIXES+1], char newprefix, SERVER_REC *
|
|||
}
|
||||
prefixlst++;
|
||||
}
|
||||
|
||||
|
||||
/* newpos is now the position in which we wish to insert the prefix */
|
||||
newprefixes[newpos++] = newprefix;
|
||||
|
||||
|
|
@ -274,7 +274,7 @@ void modes_type_b(IRC_CHANNEL_REC *channel, const char *setby, char type,
|
|||
channel->key = g_strdup(arg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
mode_set_arg(channel->server, newmode, type, mode, arg, FALSE);
|
||||
}
|
||||
|
||||
|
|
@ -285,7 +285,7 @@ void modes_type_c(IRC_CHANNEL_REC *channel, const char *setby,
|
|||
if (mode == 'l') {
|
||||
channel->limit = type == '-' ? 0 : atoi(arg);
|
||||
}
|
||||
|
||||
|
||||
mode_set_arg(channel->server, newmode, type, mode, arg, FALSE);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue