diff --git a/plugins/User/plugin.py b/plugins/User/plugin.py index e08348239..e9eddc3b6 100644 --- a/plugins/User/plugin.py +++ b/plugins/User/plugin.py @@ -327,6 +327,8 @@ class User(callbacks.Plugin): ircdb.users.setUser(user) except ValueError, e: irc.error(str(e), Raise=True) + except ircdb.DuplicateHostmask: + irc.error('That hostmask is already registered.', Raise=True) irc.replySuccess() add = wrap(add, ['private', first('otherUser', 'user'), optional('something'), additional('something', '')])