diff options
| author | 2020-01-17 12:27:03 +0000 | |
|---|---|---|
| committer | 2020-01-17 12:36:09 +0000 | |
| commit | 1de6f5b4a99d8f36d589cb2404cb510e7434afe1 (patch) | |
| tree | d4dfa45b2ee444d9e9c9dcfe823da9e6d955f753 /src/modules/m_dccallow.cpp | |
| parent | Move ISupport logic out of the core and into core_info. (diff) | |
| parent | Use irc::equals instead of strcasecmp where appropriate. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_dccallow.cpp')
| -rw-r--r-- | src/modules/m_dccallow.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 60d880cb6..b68529324 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -1,13 +1,19 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org> - * Copyright (C) 2008 John Brooks <john.brooks@dereferenced.net> - * Copyright (C) 2008 Pippijn van Steenhoven <pip88nl@gmail.com> - * Copyright (C) 2006-2008 Craig Edwards <craigedwards@brainbox.cc> + * Copyright (C) 2019 Matt Schatz <genius3000@g3k.solutions> + * Copyright (C) 2018 linuxdaemon <linuxdaemon.irc@gmail.com> + * Copyright (C) 2016 Adam <Adam@anope.org> + * Copyright (C) 2013, 2017-2019 Sadie Powell <sadie@witchery.services> + * Copyright (C) 2012-2016 Attila Molnar <attilamolnar@hush.com> + * Copyright (C) 2012, 2014, 2019 Robby <robby@chatbelgie.be> + * Copyright (C) 2009-2010 Daniel De Graaf <danieldg@inspircd.org> + * Copyright (C) 2009 Matt Smith <dz@inspircd.org> + * Copyright (C) 2008, 2010 Craig Edwards <brain@inspircd.org> + * Copyright (C) 2008 John Brooks <special@inspircd.org> * Copyright (C) 2007-2008 Robin Burchell <robin+git@viroteck.net> - * Copyright (C) 2007 Dennis Friis <peavey@inspircd.org> - * Copyright (C) 2006 Jamie ??? <???@???> + * Copyright (C) 2007-2008 Dennis Friis <peavey@inspircd.org> + * Copyright (C) 2006 jamie <jamie@e03df62e-2008-0410-955e-edbf42e46eb7> * * 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 @@ -200,13 +206,13 @@ class CommandDccallow : public Command // if they didn't specify an action, this is probably a command if (action != '+' && action != '-') { - if (!strcasecmp(parameters[0].c_str(), "LIST")) + if (irc::equals(parameters[0], "LIST")) { // list current DCCALLOW list DisplayDCCAllowList(user); return CMD_FAILURE; } - else if (!strcasecmp(parameters[0].c_str(), "HELP")) + else if (irc::equals(parameters[0], "HELP")) { // display help DisplayHelp(user); |
