summaryrefslogtreecommitdiff
path: root/blabouncer.c
diff options
context:
space:
mode:
Diffstat (limited to 'blabouncer.c')
-rw-r--r--blabouncer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/blabouncer.c b/blabouncer.c
index 772b969..d6df294 100644
--- a/blabouncer.c
+++ b/blabouncer.c
@@ -438,6 +438,10 @@ void dochat(int *serversockfd, int *clientsockfd, struct settings *settings) {
// Set initial channel names to empty strings
for (int i = 0; i < MAXCHANNELS; i++) {
channels[i].name[0] = '\0';
+ // And all the nicks within it
+ for (int j = 0; j < MAXCHANNICKS; j++) {
+ channels[i].nicks[j][0] = '\0';
+ }
}
// Initialise OpenSSL (used for both client and server)