/*
* InspIRCd -- Internet Relay Chat Daemon
*
- * Copyright (C) 2012, 2015 Attila Molnar <attilamolnar@hush.com>
+ * Copyright (C) 2018-2019 Sadie Powell <sadie@witchery.services>
+ * Copyright (C) 2015 Attila Molnar <attilamolnar@hush.com>
*
* This file is part of InspIRCd. InspIRCd is free software: you can
* redistribute it and/or modify it under the terms of the GNU General Public
{
Channel* chan = ServerInstance->FindChan(channame);
if (chan)
- Create(user, chan, ConvToInt(exptime));
+ Create(user, chan, ConvToNum<time_t>(exptime));
}
}
ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Invite::~ %p", (void*) this);
}
-void Invite::Invite::Serialize(SerializeFormat format, bool show_chans, std::string& out)
+void Invite::Invite::Serialize(bool human, bool show_chans, std::string& out)
{
if (show_chans)
out.append(this->chan->name);
else
- out.append((format == FORMAT_USER) ? user->nick : user->uuid);
+ out.append(human ? user->nick : user->uuid);
out.push_back(' ');
if (expiretimer)