]> git.netwichtig.de Git - user/henk/code/inspircd.git/commit
Convert AWAY to use cross-module events and clean up slightly.
authorPeter Powell <petpow@saberuk.com>
Sun, 12 Aug 2018 13:56:27 +0000 (14:56 +0100)
committerPeter Powell <petpow@saberuk.com>
Sun, 12 Aug 2018 14:01:45 +0000 (15:01 +0100)
commitba23c2b115ad3bf2632179d283165c1579332fd8
tree992b199acb6e10e75ab18422147de1cf377a65b4
parentf8a9b6ba4ae0b4b3c7b2a408332230dd82eb4608
Convert AWAY to use cross-module events and clean up slightly.

OnSetAway has been replaced with four events. OnUserPreAway and
OnUserPreBack can be used to deny an away state change and/or
change the away message of a local user. OnUserAway and OnUserBack
allow modules to be notified that a user's away state has changed.
12 files changed:
include/modules.h
include/modules/away.h [new file with mode: 0644]
include/numerics.h
src/coremods/core_user/cmd_away.cpp
src/coremods/core_user/core_user.h
src/modules.cpp
src/modules/m_ircv3.cpp
src/modules/m_spanningtree/away.cpp
src/modules/m_spanningtree/commands.h
src/modules/m_spanningtree/main.cpp
src/modules/m_spanningtree/main.h
src/modules/m_watch.cpp