X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fclientprotocol.h;h=decb2fcf496a69693513a6c71f5c63deca023cf4;hb=b4a174ee9c32d62ea6bf010e837e8c5b1c3d36a3;hp=6ecfbc709f00c9788a76572546a6931d91fc5759;hpb=a9e8e1f03ace24e9dcb50299f8e66c5fd6b42850;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/clientprotocol.h b/include/clientprotocol.h index 6ecfbc709..decb2fcf4 100644 --- a/include/clientprotocol.h +++ b/include/clientprotocol.h @@ -1,7 +1,8 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2016 Attila Molnar + * Copyright (C) 2018-2020 Sadie Powell + * Copyright (C) 2018 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 @@ -238,15 +239,17 @@ class ClientProtocol::Message : public ClientProtocol::MessageSource } Param(int, const char* s) - : owned(true) + : ptr(NULL) + , owned(true) { new(str) std::string(s); } Param(int, const std::string& s) - : owned(true) + : ptr(NULL) + , owned(true) { - new(str) std::string(s); + new(str) std::string(s); } Param(const Param& other) @@ -699,7 +702,7 @@ class CoreExport ClientProtocol::Serializer : public DataProvider * @param tagname Name of the tag. * @param tagvalue Tag value, may be empty. * @param tags TagMap to place the tag into, if it gets accepted. - * @return True if no error occured, false if the tag name is invalid or if this tag already exists. + * @return True if no error occurred, false if the tag name is invalid or if this tag already exists. */ bool HandleTag(LocalUser* user, const std::string& tagname, std::string& tagvalue, TagMap& tags) const;