s_auth.c: Move username-cleaning logic to a separate function.
authorMichael Poole <mdpoole@troilus.org>
Fri, 25 Apr 2014 00:55:51 +0000 (20:55 -0400)
committerMichael Poole <mdpoole@troilus.org>
Fri, 25 Apr 2014 00:55:51 +0000 (20:55 -0400)
commit5dd977c1dc9f33ddfbca5eb11fb8f3b95c7e5359
tree5f6028f558200fcd821d1c89c1778f4eba30623a
parent46f401ef80a4bede99ed5034d03836f6e7ca6936
s_auth.c: Move username-cleaning logic to a separate function.

We want to bypass this when IAuth sends a forced username ('o' command),
but also to clean the username before we send the username to IAuth.

Also get rid of one local variable in auth_set_username().
ircd/s_auth.c