Handle default oplevels.
authorMichael Poole <mdpoole@troilus.org>
Tue, 1 Nov 2005 00:23:14 +0000 (00:23 +0000)
committerMichael Poole <mdpoole@troilus.org>
Tue, 1 Nov 2005 00:23:14 +0000 (00:23 +0000)
commit0669b78c4bb443fbc6642eddcbe6778cfd124d6f
tree76d974418ac9ba13f2ddbe08afde8e597b0c9e78
parentfcb1c7816df34f42bdfa36501e761d5af0ee3508
Handle default oplevels.

src/chanserv.c (cmd_mode): Calculate base oplevel as 1 plus one point
    for each access level below owner.
  (chan_opt_modes): Add new argument for mod_chanmode_parse().
  (chanserv_conf_read): Likewise.
  (chanserv_channel_read): Likewise.

src/hash.c (AddChannel): Likewise.
  (AddChannelUser): Set oplevel by default.

src/hash.h (MAXOPLEVEL): New define value.
  (modeNode): Shrink modes and oplevel fields.

src/opserv.c (cmd_chaninfo): Fix indentation; show oplevel after
    nickname rather than before it.

src/proto.h (mod_chanmode_parse): Declare new parameter.

src/proto-bahamut.c (mod_chanmode_parse): Add new parameter (and
    ignore it).

src/proto-common.c (mod_chanmode): Find the default oplevels for
    parsing the mode change.

src/proto-p10.c (create_desc): Remove oplevel field.
  (join_helper): Do not try to set oplevel for new modeNode.
  (parse_foreach): Do not bother parsing oplevels in JOIN, since they
    are no longer used.
  (mod_chanmode_parse): Add new parameter and use it to determine the
    oplevel to set when a valid oplevel one is not specified.
git-archimport-id: srvx@srvx.net--2005-srvx/srvx--devo--1.3--patch-31
ChangeLog
src/chanserv.c
src/hash.c
src/hash.h
src/opserv.c
src/proto-bahamut.c
src/proto-common.c
src/proto-p10.c
src/proto.h