]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_channel/invite.cpp
Fix a bunch of weird indentation and spacing issues.
[user/henk/code/inspircd.git] / src / coremods / core_channel / invite.cpp
index 7ac662edc9331c31560a6ce3bf00397987f7b71b..8122c215d8b790848aa2a14e0e38a23271dd5e3d 100644 (file)
@@ -1,7 +1,8 @@
 /*
  * 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
@@ -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<time_t>(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)