degesch: fix nick cycling
This commit is contained in:
parent
b3876260b9
commit
0ce4872254
|
@ -4121,7 +4121,7 @@ irc_fetch_next_nickname (struct server *s)
|
|||
|
||||
char *result = NULL;
|
||||
if (s->nick_counter >= 0 && (size_t) s->nick_counter < v.len)
|
||||
result = str_vector_steal (&v, s->nick_counter++);
|
||||
result = xstrdup (v.vector[s->nick_counter++]);
|
||||
if ((size_t) s->nick_counter >= v.len)
|
||||
// Exhausted all nicknames
|
||||
s->nick_counter = -1;
|
||||
|
|
Loading…
Reference in New Issue