Skip to content

Instantly share code, notes, and snippets.

View splhack's full-sized avatar

Kazuki Sakamoto splhack

View GitHub Profile
diff --git a/src/channel.c b/src/channel.c
index d4ec60b..9aa45dd 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -318,7 +318,7 @@ add_channel(void)
channel->ch_id = next_ch_id++;
ch_log(channel, "Created channel");
- for (part = PART_SOCK; part <= PART_IN; ++part)
+ for (part = PART_SOCK; part < PART_NUM; ++part)