send a better error message when asked to switch over to the same group

This commit is contained in:
Mike Belopuhov 2013-12-24 18:00:19 +01:00
parent 8886035ebe
commit 4d92f03396

4
cmd.c
View File

@ -120,9 +120,9 @@ icb_cmd_change(struct icb_session *is, char *arg)
}
}
/* changing to the same group is strictly prohibited */
/* see if we're changing to the same group */
if (is->group && is->group == ig) {
icb_error(is, "Huh?");
icb_error(is, "You are already in that group");
return;
}