mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
Remove a redundant check, and fix user-mode change propegation. (closes bug #574)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10358 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
5e2eaff8b7
commit
dc13e23883
@ -296,20 +296,6 @@ bool TreeSocket::ProcessLine(std::string &line)
|
||||
if (command == "SVSMODE") // This isn't in an "else if" so we still force FMODE for changes on channels.
|
||||
command = "MODE";
|
||||
|
||||
if (command == "MODE")
|
||||
{
|
||||
if (params.size() >= 2)
|
||||
{
|
||||
Channel* channel = Instance->FindChan(params[0]);
|
||||
if (channel)
|
||||
{
|
||||
this->SendError("MODE may no longer be used on channels. Please use FMODE, with correct timestamp rules.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Now, check for (and parse) commands as appropriate. -- w
|
||||
*/
|
||||
@ -525,7 +511,7 @@ bool TreeSocket::ProcessLine(std::string &line)
|
||||
{
|
||||
return this->Encap(prefix, params);
|
||||
}
|
||||
else if (command == "MODE")
|
||||
else if (command == "MODE" && !this->Instance->FindUUID(prefix)) // XXX we should check for no such serv?
|
||||
{
|
||||
// Server-prefix MODE.
|
||||
std::vector<std::string> modelist(params.begin(), params.end());
|
||||
|
Loading…
x
Reference in New Issue
Block a user