X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcoremods%2Fcore_wallops.cpp;h=3855f319d6efcd659e213fe904408e64e72bb94d;hb=e2b0f3dc9ef4d56c71d7abda13e6139ca092e387;hp=09fafd244146ea329afa7d6d65f25f64bffb2238;hpb=21e7efdadfa685ac1ddcb0a0a515502bc873302b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/coremods/core_wallops.cpp b/src/coremods/core_wallops.cpp index 09fafd244..3855f319d 100644 --- a/src/coremods/core_wallops.cpp +++ b/src/coremods/core_wallops.cpp @@ -1,8 +1,13 @@ /* * InspIRCd -- Internet Relay Chat Daemon * + * Copyright (C) 2018-2019 Sadie Powell + * Copyright (C) 2013-2014, 2018 Attila Molnar + * Copyright (C) 2012, 2019 Robby + * Copyright (C) 2009 Uli Schlachter * Copyright (C) 2009 Daniel De Graaf - * Copyright (C) 2007 Robin Burchell + * Copyright (C) 2007 Dennis Friis + * Copyright (C) 2006, 2010 Craig Edwards * * 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 @@ -54,6 +59,12 @@ class CommandWallops : public Command CmdResult CommandWallops::Handle(User* user, const Params& parameters) { + if (parameters[0].empty()) + { + user->WriteNumeric(ERR_NOTEXTTOSEND, "No text to send"); + return CMD_FAILURE; + } + ClientProtocol::Message msg("WALLOPS", user); msg.PushParamRef(parameters[0]); ClientProtocol::Event wallopsevent(protoevprov, msg);