diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-21 06:31:17 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-21 06:31:17 +0000 |
| commit | 0ed0fa4af62554a7281d403b6895b29e198e8186 (patch) | |
| tree | 4b0509084ef8181790f19c258c3bc1f5e38b80cc /src/nickserv.c | |
| parent | 15817208aae1c80e2b03668981ac9268d6a02dde (diff) | |
Rewrote how Anope stores channel status modes on users.
This allows 3rd party modules to add and track their own status mode.
Additionally we now store a users status in both the UserContainer and ChannelContainer.
This also fixes the ModeStacker to not send any mode strings unnecessarially and shuffles some code
around so we don't have to manually remove channels from users lists everywhere.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2775 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/nickserv.c')
| -rw-r--r-- | src/nickserv.c | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/src/nickserv.c b/src/nickserv.c index 4ab8fc4b8..506e56ef4 100644 --- a/src/nickserv.c +++ b/src/nickserv.c @@ -868,68 +868,6 @@ void SetOperType(NickCore *nc) /*********************** NickServ command routines ***********************/ /*************************************************************************/ - -/* We don't use this function but we keep it for module coders -certus */ -int should_mode_change(int16 status, int16 mode) -{ - switch (mode) - { - case CUS_OP: - if (status & CUS_OP) - { - return 0; - } - break; - case CUS_VOICE: - if (status & CUS_OP) - { - return 0; - } - if (status & CUS_HALFOP) - { - return 0; - } - if (status & CUS_VOICE) - { - return 0; - } - return 1; - break; - case CUS_HALFOP: - if (status & CUS_OP) - { - return 0; - } - if (status & CUS_HALFOP) - { - return 0; - } - return 1; - break; - case CUS_OWNER: - if (ModeManager::FindChannelModeByName(CMODE_OWNER)) - { - if (status & CUS_OWNER) - { - return 0; - } - } - break; - case CUS_PROTECT: - if (ModeManager::FindChannelModeByName(CMODE_PROTECT)) - { - if (status & CUS_PROTECT) - { - return 0; - } - } - break; - } - return 1; -} - -/*************************************************************************/ - int do_setmodes(User * u) { Channel *c; |
