]> arthur.barton.de Git - ngircd-alex.git/commit
Allow "@" character in user names for authentication bug155-allowAtInUser
authorAlexander Barton <alex@barton.de>
Mon, 11 Feb 2013 12:57:54 +0000 (13:57 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 11 Feb 2013 12:57:54 +0000 (13:57 +0100)
commit4b15f10fbb036da96caaf9ffcffd27cd9f6815d2
tree2741e4c0a06f75fd90e4008499185cd79902ebda
parent1e8b775a7a6d0c390e037bd73332072e7c510525
Allow "@" character in user names for authentication

The "@" character isn't allowed in IRC usernames, because it is the
separator between user name and hostname in IRC masks:

  <nickname>!<username>@<hostname>

This patch accepts user names including "@" characters, saves the
unmodified name for authentication but stores only the part in front
of the "@" character as "IRC user name". And the latter is how
ircd2.11, Bahamut, and irc-seven behave as well.

Closes bug #155.
src/ngircd/irc-login.c
src/ngircd/login.c