Add a new irc_user_modes() helper function and irc_user_mode_chars[] array.
authorMichael Poole <mdpoole@troilus.org>
Thu, 17 Sep 2009 20:45:49 +0000 (16:45 -0400)
committerMichael Poole <mdpoole@troilus.org>
Thu, 17 Sep 2009 21:05:39 +0000 (17:05 -0400)
commit2634c6c395e64ede3cf8a324ee4f8a7e1bd39ad0
treeaa2de15f4c1d448ba9edabd7fb492cec3cdd3d7e
parentdc3149aacb547b498b2b7a8e060568af4dcc749c
Add a new irc_user_modes() helper function and irc_user_mode_chars[] array.

src/proto.h (irc_user_modes): Declare.
  (irc_user_mode_chars): Likewise.
src/proto-common.c (irc_user_modes): Define.
src/proto-bahamut.c (irc_user_mode_chars): Define.
  (irc_user): Use irc_user_mode_chars() instead of open-coding it.
src/proto-p10.c (irc_user_mode_chars): Define.
  (irc_user): Use irc_user_mode_chars() instead of open-coding it.
src/opserv.c (cmd_whois): Use irc_user_mode_chars() here too.
src/modcmd.c (modcmd_saxdb_write): Write bot modes to the database.
  (modcmd_load_bots): Read them out and use them.
src/modcmd.c
src/opserv.c
src/proto-bahamut.c
src/proto-common.c
src/proto-p10.c
src/proto.h