Avoid appending a user to curr_opers or curr_helpers more than once.
authorMichael Poole <mdpoole@troilus.org>
Fri, 14 Dec 2007 03:32:13 +0000 (22:32 -0500)
committerMichael Poole <mdpoole@troilus.org>
Fri, 14 Dec 2007 03:32:13 +0000 (22:32 -0500)
commita96bcd75a7530b0f9a25209b585e3ee18dc49937
treeb9abc9ef47e7c426ed10853b803975496479a3b4
parentdd42b21b5942e1aa570ccefe458bc159271aa7be
Avoid appending a user to curr_opers or curr_helpers more than once.

hash.h (userList_contains): Declare new function.
hash.c (userList_contains): Implement it.
nickserv.c (set_user_handle_info): Use it to check against curr_helpers.
proto-p10.c (mod_usermode): Use it for curr_opers.
src/hash.c
src/hash.h
src/nickserv.c
src/proto-p10.c