X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcoremods%2Fcore_channel%2Finvite.cpp;h=8122c215d8b790848aa2a14e0e38a23271dd5e3d;hb=b4a174ee9c32d62ea6bf010e837e8c5b1c3d36a3;hp=7ac662edc9331c31560a6ce3bf00397987f7b71b;hpb=c6a508a3da977041909f18f77d6e8fea942512cf;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/coremods/core_channel/invite.cpp b/src/coremods/core_channel/invite.cpp index 7ac662edc..8122c215d 100644 --- a/src/coremods/core_channel/invite.cpp +++ b/src/coremods/core_channel/invite.cpp @@ -1,7 +1,8 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2012, 2015 Attila Molnar + * Copyright (C) 2018-2019 Sadie Powell + * Copyright (C) 2015 Attila Molnar * * 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 @@ -162,7 +163,7 @@ void Invite::APIImpl::Unserialize(LocalUser* user, const std::string& value) { Channel* chan = ServerInstance->FindChan(channame); if (chan) - Create(user, chan, ConvToInt(exptime)); + Create(user, chan, ConvToNum(exptime)); } } @@ -179,12 +180,12 @@ Invite::Invite::~Invite() 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)