X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree%2Ffmode.cpp;h=c3eaa7afa4ee68a272d2c09a53cb1d2bcf38c8c5;hb=3151d60c1ecc9462e4c335282ee6c31672f45111;hp=52e512d9275563258f3eead62994195b98ba90bb;hpb=48cf43d0aba330bacb5dc0122f0f9d247c2db0b7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spanningtree/fmode.cpp b/src/modules/m_spanningtree/fmode.cpp index 52e512d92..c3eaa7afa 100644 --- a/src/modules/m_spanningtree/fmode.cpp +++ b/src/modules/m_spanningtree/fmode.cpp @@ -1,7 +1,11 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2009-2010 Daniel De Graaf + * Copyright (C) 2018 Sadie Powell + * Copyright (C) 2012-2015 Attila Molnar + * Copyright (C) 2012 Robby + * Copyright (C) 2010 Daniel De Graaf + * Copyright (C) 2009 Uli Schlachter * Copyright (C) 2008 Robin Burchell * * This file is part of InspIRCd. InspIRCd is free software: you can @@ -21,8 +25,8 @@ #include "inspircd.h" #include "commands.h" -/** FMODE command - server mode with timestamp checks */ -CmdResult CommandFMode::Handle(User* who, std::vector& params) +/** FMODE command - channel mode change with timestamp checks */ +CmdResult CommandFMode::Handle(User* who, Params& params) { time_t TS = ServerCommand::ExtractTS(params[1]); @@ -39,7 +43,7 @@ CmdResult CommandFMode::Handle(User* who, std::vector& params) if (TS > ourTS) return CMD_FAILURE; - /* TS is equal or less: Merge the mode changes into ours and pass on. + /* TS is equal or less: apply the mode change locally and forward the message */ // Turn modes into a Modes::ChangeList; may have more elements than max modes