mirror of
https://github.com/anope/anope.git
synced 2026-06-26 18:36:39 +02:00
Cleaned up some unused code, moved handling of user modes around so we dont get log messages about user modes when users connect, and fixed tracking some umodes on Unreal
This commit is contained in:
@@ -587,18 +587,6 @@ void Channel::SetMode(BotInfo *bi, ChannelModeName Name, const Anope::string &pa
|
||||
SetMode(bi, ModeManager::FindChannelModeByName(Name), param, EnforceMLock);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a mode on a channel
|
||||
* @param bi The client setting the modes
|
||||
* @param Mode The mode
|
||||
* @param param Optional param arg for the mode
|
||||
* @param EnforceMLock true if mlocks should be enforced, false to override mlock
|
||||
*/
|
||||
void Channel::SetMode(BotInfo *bi, char Mode, const Anope::string ¶m, bool EnforceMLock)
|
||||
{
|
||||
SetMode(bi, ModeManager::FindChannelModeByChar(Mode), param, EnforceMLock);
|
||||
}
|
||||
|
||||
/** Remove a mode from a channel
|
||||
* @param bi The client setting the modes
|
||||
* @param cm The mode
|
||||
@@ -649,18 +637,6 @@ void Channel::RemoveMode(BotInfo *bi, ChannelModeName Name, const Anope::string
|
||||
RemoveMode(bi, ModeManager::FindChannelModeByName(Name), param, EnforceMLock);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove a mode from a channel
|
||||
* @param bi The client setting the modes
|
||||
* @param Mode The mode
|
||||
* @param param Optional param arg for the mode
|
||||
* @param EnforceMLock true if mlocks should be enforced, false to override mlock
|
||||
*/
|
||||
void Channel::RemoveMode(BotInfo *bi, char Mode, const Anope::string ¶m, bool EnforceMLock)
|
||||
{
|
||||
RemoveMode(bi, ModeManager::FindChannelModeByChar(Mode), param, EnforceMLock);
|
||||
}
|
||||
|
||||
/** Get a param from the channel
|
||||
* @param Name The mode
|
||||
* @param Target a string to put the param into
|
||||
|
||||
Reference in New Issue
Block a user