mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
I think this fixes the mode +k weirdness. Keys were never being set correctly in the channel data. gcc doesnt warn on cast from char* to bool.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10606 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
f7a563946c
commit
cbef292a6c
@ -80,7 +80,8 @@ ModeAction ModeChannelKey::OnModeChange(User* source, User*, Channel* channel, s
|
||||
{
|
||||
std::string ckey;
|
||||
ckey.assign(parameter, 0, 32);
|
||||
channel->SetMode('k', ckey.c_str());
|
||||
channel->SetModeParam('k', ckey.c_str(), adding);
|
||||
channel->SetMode('k', adding);
|
||||
parameter = ckey;
|
||||
return MODEACTION_ALLOW;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user