summary refs log tree commit diff
path: root/state.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-15 00:53:46 -0500
committerJune McEnroe <june@causal.agency>2019-11-15 00:54:06 -0500
commit11f941bc4c57af40566616bae1e0aca079493356 (patch)
tree4df1e80ec0f7ddc481504edab573570e75a4d3d8 /state.c
parentAdd concept of passive clients (diff)
downloadpounce-11f941bc4c57af40566616bae1e0aca079493356.tar.gz
pounce-11f941bc4c57af40566616bae1e0aca079493356.zip
Request NAMES on sync by default
This inverts the meaning of -N!
Diffstat (limited to 'state.c')
-rw-r--r--state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/state.c b/state.c
index 4103fff..4d3aa1c 100644
--- a/state.c
+++ b/state.c
@@ -393,6 +393,7 @@ void stateSync(struct Client *client) {
 				ORIGIN, self.nick, chan->name, chan->topic
 			);
 		}
-		if (stateJoinNames) serverFormat("NAMES %s\r\n", chan->name);
+		if (stateNoNames) continue;
+		serverFormat("NAMES %s\r\n", chan->name);
 	}
 }