summaryrefslogtreecommitdiff
path: root/src/commands
AgeCommit message (Collapse)Author
2016-02-29Remove embarrassing negative comments about some clients from the codeAttila Molnar
2016-02-25Don't show snotices for kills from ulined clientsAdam
2015-09-06Merge pull request #1018 from SaberUK/insp20+hidekillsAdam
[2.0] Fix exposing the opers hostname in KILL when using hidekills.
2015-04-16cmd_userhost Fix +H hidden opers being shown as opersAttila Molnar
2015-03-20Fix exposing the opers hostname in KILL when using hidekills.Peter Powell
2015-02-04cmd_userhost List 5 users in the reply even if the query (incorrectly) ↵Attila Molnar
contains more than 5 nicks
2015-01-21Fix numeric ERR_NOTREGISTERED not containing the user's nickAttila Molnar
2015-01-19Merge branch 'insp20+penalty' into insp20Attila Molnar
2015-01-17cmd_list: Give +s precedence to +pDaniel Vassdal
When +ps is set, handle it as +s (most restrictive) instead of +p
2015-01-12Increase penalty for some core commandsAttila Molnar
2014-12-30Fix User::age being incorrectly used in some places instead of signonAttila Molnar
2014-11-30Don't submit a reload worker if the module doing the reload is scheduled for ↵Attila Molnar
unload
2014-10-13Avoid calling methods on NULL pointers wherever possible.Peter Powell
The trick we use to allow this is undefined behaviour and is not liked by LLVM. We should stop using it but it has the potential to break to many things for a minor release.
2014-10-13Fix various warnings when building with LLVM 3.5.Peter Powell
- warning: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Wabsolute-value] - warning: 'this' pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
2014-06-07Fix harmless loop off-by-ones found by Moonlightningsatmd
2014-04-12Correct the syntax messages of a few modules.Robby-
2014-04-04Add REG_ALL checks to treat unregistered users as nonexistent in more casesAttila Molnar
2014-03-11cmd_names Allow opers having the channels/auspex priv to view the NAMES list ↵Attila Molnar
of +s channels from outside A version of the check removed by this commit is in Channel::UserList() which takes the priv into account Discovered by @Cronus89
2014-02-20Fix /who on opers incorrectly showing +i opers toAdam
users without the privilege to see them, introduced in b328aad53b044bd9cf9720dfed216b0ee61c8e31
2014-02-11Fix various problems detected by Clang 3.4.Peter Powell
- cidr.cpp: remove inverted_bits; unused since 9fad3ecb9215a0034bf407f192926b04cb5efaed. - cmd_stats.cpp: remove needless inversion and comparison to 0. - inspircd.cpp: remove needless comparison to 0. - socket.cpp: remove all_zero; unused since 03a1bf15b1da7643b237c22db1a478916a976ccf.
2014-01-21Increase the penalty for a few core commandsAttila Molnar
2013-11-12Fix remote /MODULES bugDaniel Vassdal
2013-08-27Fix crash caused by passing a large integer to ctime()attilamolnar
In addition to verifying the return value of localtime(), correct tm_year if it is out of bounds Reported by @JDowny
2013-06-05Remove unnecessary string copies and dead codeattilamolnar
2013-06-01cmd_who Hide +i users when listing users on a server and hidewhois is offattilamolnar
Fixes #547 reported by @RawrDragon
2013-05-23Update authorsattilamolnar
2013-04-01cmd_stats List opers without iterating the whole userlistattilamolnar
2013-04-01cmd_invite Check if the inviting user is on the channel before potentially ↵attilamolnar
telling him the target is already on it
2013-03-29cmd_kill Send snotice to servers when both the oper and the victim are on ↵attilamolnar
the same server
2013-03-27cmd_lusers Fix miscountingattilamolnar
2013-03-03cmd_lusers Be smart and know how many invisible users are there without ↵attilamolnar
iterating the userlist
2013-03-03cmd_lusers Use of size() instead of counting elementsattilamolnar
2013-03-03cmd_lusers Refresh max local/global user counters after a user connectsattilamolnar
Fixes #423 reported by @RawrDragon
2013-03-03cmd_lusers Convert to a moduleattilamolnar
2013-02-11cmd_invite Send invite announcements to halfops and higher when ↵attilamolnar
<security:announceinvites> is 'dynamic' regardless of the channel being +i or not Clarify what the various options mean in the doc Fixes #418 reported by @RawrDragon
2013-02-11cmd_invite Correct error message when the user has no privs to invite and no ↵attilamolnar
halfop prefix is available
2012-12-15Add IS_SERVER() and REG_ALL checks to (mostly oper only) commands taking a ↵attilamolnar
target nickname If a SID was passed as the target user parameter or when it's an unregistered user reply with the "no such nick" (or the moral equivalent) message
2012-12-02Register all commands, modes and extensions using AddService()attilamolnar
AddService() throws an exception if an item cannot be registered, modules no longer need to worry about AddMode() etc. failing
2012-12-02Attach to events and register services in init()attilamolnar
2012-11-29Add a typedef for LocalUserListattilamolnar
2012-11-29cmd_rehash, m_spanningtree Fix REHASH messages duplicating at each hopattilamolnar
Fixes #375 reported by @JDowny
2012-11-28Change empty string assignments to .clear() or remove them entirelyattilamolnar
Part 2 of ba5c0db795824c3fc1ad48ce332d7bdc440cb77f
2012-10-21Fix /RESTART not closing file descriptorsattilamolnar
Fixes issue #262 reported by @MistrX
2012-10-21Make better use of User::GetFullRealHost()attilamolnar
2012-10-21Fix KILL accepting SIDs, get rid of potentially unsafe snprintf and strlcpyattilamolnar
2012-10-12Windows: In-depth cleanup (see details)ChrisTX
-Fix x64 builds for Windows. Now all configurations compile. -Remove the non-working rebase stuff. -Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now. -Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2 -Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need. -Enable optimizations for release builds. -De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure -Add the VC++ specific bad files in .gitignore -Disable PID writing on Windows. This is only making sense for *nix builds. -Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working) -Removed certain unused functions and variables -Remove stdint defines from the windows wrapper -Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds. -Re-evaluated the warnings list, commented it. -Moved inspircd_config/_version to include/ to match *nix -Removed the creation of inspircd_se_config, as it isn't used at all. -Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out) -Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly. -Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down) -Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded. -Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways) -Removed the unused ClearConsole() -Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate. -Made inet_aton an inline function for increased performance -C4800, performance warning about bool forcing, resolved at all occurrences. -C4701, uninitialized variable 'cached', resolved at all occurrences. -dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance. -Removed the wrong CRT debug flags. This drains a lot of performance. -Removed the clock_gettime/gettimeofday wrappers -Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function. -Added a block of C4355 for < VS2012 -Update project files for c870714
2012-10-12Remove superfluous std::string()sattilamolnar
2012-10-12Fix unregistered users getting global notices, also fix certain commands ↵attilamolnar
working on unregistered users, spotted by @Adam-
2012-10-11Add myself to the Other Contributors listAdam
2012-09-30Fix more undefined behavior caused by referencing the returned buffer by ↵attilamolnar
std::string::c_str() when the object is temporary See 83c7cc45daf6fb1f8c36f15297a4657e45a34e88