diff options
| author | Nakidai <nakidai@disroot.org> | 2026-02-12 21:30:31 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2026-02-12 21:30:31 +0300 |
| commit | b6f425b803d6dd8ba90a558a0cab58e0ca470e6e (patch) | |
| tree | 80578b5d10bddcfe1040721a7eade439c7b9490e /handle.c | |
| parent | 3082bfec87bd55b391f2d4099e8d7748902d09de (diff) | |
| download | libreircd-b6f425b803d6dd8ba90a558a0cab58e0ca470e6e.tar.gz libreircd-b6f425b803d6dd8ba90a558a0cab58e0ca470e6e.zip | |
Fix loop in kick()
Incrementing global count instead of i is a stupid mistake...
Diffstat (limited to 'handle.c')
| -rw-r--r-- | handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/handle.c b/handle.c index 27fdb86..903a4f4 100644 --- a/handle.c +++ b/handle.c @@ -83,7 +83,7 @@ kick(struct Message *msg, struct Peer *peer) ensure(msg->params[0] && *msg->params[0], reply(peer, 431), 0); ensure(msg->params[1] && *msg->params[1], reply(peer, 431), 0); - for (i = 0; i < channels_c; ++channels_c) + for (i = 0; i < channels_c; ++i) if (!strcmp(channels[i].name, msg->params[0])) break; ensure(i != channels_c, reply(peer, 403, msg->params[0]), 0); |