Permalink
Browse files

Set ssl port to 0 by default too for new bots.

  • Loading branch information...
Cizzle committed Nov 26, 2017
1 parent dccd3fd commit ea58861e7a54b5903bde0a884128eeb62736bb2f
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/cmds.c
View
@@ -877,6 +877,9 @@ static void cmd_pls_bot(struct userrec *u, int idx, char *par)
userlist = adduser(userlist, handle, "none", "-", USER_BOT);
u1 = get_user_by_handle(userlist, handle);
bi = user_malloc(sizeof(struct bot_addr));
#ifdef TLS
bi->ssl = 0;
#endif
bi->address = user_malloc(strlen(addr) + 1);
strcpy(bi->address, addr);
@@ -885,7 +888,6 @@ static void cmd_pls_bot(struct userrec *u, int idx, char *par)
bi->relay_port = 3333;
} else {
#ifdef TLS
bi->ssl = 0;
if (*port == '+')
bi->ssl |= TLS_BOT;
#endif

0 comments on commit ea58861

Please sign in to comment.