Send oplevels correctly during a burst.
authorMichael Poole <mdpoole@troilus.org>
Thu, 7 Jan 2010 02:33:21 +0000 (21:33 -0500)
committerMichael Poole <mdpoole@troilus.org>
Thu, 7 Jan 2010 02:33:21 +0000 (21:33 -0500)
commit2167d030c80b34f9f9cc0e2235edf47d64ce2500
tree2125f4d57588ea3c694fa5c323b73dfac7055763
parent056748e33d1b3d773de40697dd8925ad0be4a35f
Send oplevels correctly during a burst.

src/hash.c (AddChannelUser): Initialize oplevel to the maximum, not -1.
src/proto-p10.c (parse_oplevel): Move up for easier inlining.
  (modeNode_sort): New function.
  (irc_burst): Use it to sort the membership list for channels so the
    members' oplevels can be sent correctly.
  (cmd_burst): Simplify the handling of oplevels.
  (mod_chanmode_parse): Only change the member's oplevel when opping or
    deopping -- otherwise +v would set it to MAXOPLEVEL!
src/hash.c
src/proto-p10.c