summaryrefslogtreecommitdiff
path: root/message.c
diff options
context:
space:
mode:
Diffstat (limited to 'message.c')
-rw-r--r--message.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/message.c b/message.c
index 5cfff91..3887ec9 100644
--- a/message.c
+++ b/message.c
@@ -89,9 +89,11 @@ int processservermessage(SSL *server_ssl, char *str, struct client *clients, int
// Receiving greeting 004 means we're now registered
// Request IRCv3 multi-prefix extension so we can more accurately inform new clients about current user prefixes
sendtoserver(server_ssl, "CAP REQ multi-prefix", strlen("CAP REQ multi-prefix"), 0, clients, settings);
- // Send the connect command, if set
- if (settings->connectcommand[0]) {
- sendtoserver(server_ssl, settings->connectcommand, strlen(settings->connectcommand), 0, clients, settings);
+ // Send any configured connect commands
+ for (int i = 0; i < MAXCONFARR; i++) {
+ if (settings->connectcommands[i][0]) {
+ sendtoserver(server_ssl, settings->connectcommands[i], strlen(settings->connectcommands[i]), 0, clients, settings);
+ }
}
// If this is a reconnection, JOIN existing channels and catch clients up again
if (ircdstate->reconnecting) {