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:
brain 2008-09-29 01:40:17 +00:00
parent f7a563946c
commit cbef292a6c

View File

@ -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;
}