Improved server name protection

This commit is contained in:
Harry Jeffery 2013-08-29 20:46:07 +01:00
parent 2726802408
commit c8f62ae151

View File

@ -74,7 +74,7 @@ func (s *Server) handleEvent(e Event) {
}
//Protect the server name from being used
if newNick == s.name {
if strings.ToLower(newNick) == strings.ToLower(s.name) {
e.client.reply(errNickInUse, newNick)
return
}