mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 23:22:16 +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
|
|
@ -428,7 +428,7 @@ static void dcc_chat_passive(CHAT_DCC_REC *dcc)
|
|||
dcc_ip2str(&own_ip, host);
|
||||
irc_send_cmdv(dcc->server, "PRIVMSG %s :\001DCC CHAT CHAT %s %d %d\001",
|
||||
dcc->nick, host, port, dcc->pasv_id);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* SYNTAX: DCC CHAT [-passive] [<nick>] */
|
||||
|
|
@ -615,7 +615,7 @@ static void ctcp_msg_dcc_chat(IRC_SERVER_REC *server, const char *data,
|
|||
char **params;
|
||||
int paramcount;
|
||||
int passive, autoallow = FALSE;
|
||||
|
||||
|
||||
/* CHAT <unused> <address> <port> */
|
||||
/* CHAT <unused> <address> 0 <id> (DCC CHAT passive protocol) */
|
||||
params = g_strsplit(data, " ", -1);
|
||||
|
|
@ -656,14 +656,14 @@ static void ctcp_msg_dcc_chat(IRC_SERVER_REC *server, const char *data,
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
dcc = dcc_chat_create(server, chat, nick, params[0]);
|
||||
dcc->target = g_strdup(target);
|
||||
dcc->port = atoi(params[2]);
|
||||
|
||||
|
||||
if (passive)
|
||||
dcc->pasv_id = atoi(params[3]);
|
||||
|
||||
|
||||
dcc_str2ip(params[1], &dcc->addr);
|
||||
net_ip2host(&dcc->addr, dcc->addrstr);
|
||||
|
||||
|
|
|
|||
|
|
@ -454,7 +454,7 @@ static void ctcp_msg_dcc_send(IRC_SERVER_REC *server, const char *data,
|
|||
g_memmove(fname, fname+1, len);
|
||||
quoted = TRUE;
|
||||
}
|
||||
|
||||
|
||||
if (passive && port != 0) {
|
||||
/* This is NOT a DCC SEND request! This is a reply to our
|
||||
passive request. We MUST check the IDs and then connect to
|
||||
|
|
@ -501,7 +501,7 @@ static void ctcp_msg_dcc_send(IRC_SERVER_REC *server, const char *data,
|
|||
|
||||
if (passive && port == 0)
|
||||
dcc->pasv_id = p_id; /* Assign the ID to the DCC */
|
||||
|
||||
|
||||
memcpy(&dcc->addr, &ip, sizeof(ip));
|
||||
if (dcc->addr.family == AF_INET)
|
||||
net_ip2host(&dcc->addr, dcc->addrstr);
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ static int dcc_ctcp_resume_parse(int type, const char *data, const char *nick,
|
|||
return 0;
|
||||
|
||||
fileparams = get_file_params_count_resume(params, paramcount);
|
||||
|
||||
|
||||
if (paramcount >= fileparams + 2) {
|
||||
port = atoi(params[fileparams]);
|
||||
*size = str_to_uofft(params[fileparams+1]);
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@ static void cmd_dcc_send(const char *data, IRC_SERVER_REC *server,
|
|||
cmd_param_error(CMDERR_NOT_CONNECTED);
|
||||
|
||||
passive = g_hash_table_lookup(optlist, "passive") != NULL;
|
||||
|
||||
|
||||
if (g_hash_table_lookup(optlist, "rmhead") != NULL) {
|
||||
queue = dcc_queue_old(nick, servertag);
|
||||
if (queue != -1)
|
||||
|
|
@ -217,7 +217,7 @@ static void cmd_dcc_send(const char *data, IRC_SERVER_REC *server,
|
|||
|
||||
if (*fileargs == '\0')
|
||||
cmd_param_error(CMDERR_NOT_ENOUGH_PARAMS);
|
||||
|
||||
|
||||
dcc_send_add(servertag, chat, nick, fileargs, mode, passive);
|
||||
}
|
||||
|
||||
|
|
@ -434,11 +434,11 @@ static int dcc_send_one_file(int queue, const char *target, const char *fname,
|
|||
if (passive) {
|
||||
dcc->pasv_id = rand() % 64;
|
||||
}
|
||||
|
||||
|
||||
/* send DCC request */
|
||||
signal_emit("dcc request send", 1, dcc);
|
||||
|
||||
|
||||
|
||||
dcc_ip2str(&own_ip, host);
|
||||
if (passive == FALSE) {
|
||||
str = g_strdup_printf(dcc->file_quoted ?
|
||||
|
|
|
|||
|
|
@ -90,9 +90,9 @@ void dcc_init_rec(DCC_REC *dcc, IRC_SERVER_REC *server, CHAT_DCC_REC *chat,
|
|||
|
||||
dcc->servertag = server != NULL ? g_strdup(server->tag) :
|
||||
(chat == NULL ? NULL : g_strdup(chat->servertag));
|
||||
|
||||
|
||||
dcc->pasv_id = -1; /* Not a passive DCC */
|
||||
|
||||
|
||||
dcc_conns = g_slist_append(dcc_conns, dcc);
|
||||
signal_emit("dcc created", 1, dcc);
|
||||
}
|
||||
|
|
@ -454,8 +454,8 @@ static int dcc_timeout_func(void)
|
|||
/* Timed out - don't send DCC REJECT CTCP so CTCP
|
||||
flooders won't affect us and it really doesn't
|
||||
matter that much anyway if the other side doen't
|
||||
get it..
|
||||
|
||||
get it..
|
||||
|
||||
We don't want dcc servers to time out. */
|
||||
dcc_close(dcc);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ typedef struct {
|
|||
/* passive DCC */
|
||||
#define dcc_is_passive(dcc) \
|
||||
((dcc)->pasv_id >= 0)
|
||||
|
||||
|
||||
extern GSList *dcc_conns;
|
||||
|
||||
void dcc_register_type(const char *type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue