Sadie Powell
579a17df38
Clean up a bunch of contructors and destructors.
2020-11-01 02:22:41 +00:00
Sadie Powell
7cb27dabe6
Convert CmdResult to an 8-bit strongly typed enum.
2020-10-27 00:59:11 +00:00
Sadie Powell
f6c4ff5498
Merge branch 'insp3' into master.
2020-09-27 12:37:24 +01:00
Sadie Powell
e79d4ec07d
Make shun block client-only tags by default.
2020-09-27 11:37:22 +01:00
Sadie Powell
b755d2a778
Merge branch 'insp3' into master.
2020-05-05 22:03:14 +01:00
InspIRCd Robot
44489ddf7e
Update copyright headers.
2020-04-24 10:23:47 +01:00
InspIRCd Robot
4f9abe96a4
Fixes by misspell-fixer
2020-04-21 00:52:12 -06:00
Sadie Powell
9ec5126eeb
Replace the flags_required field with an enum.
2020-04-14 21:30:50 +01:00
Sadie Powell
b382496d5c
Alow modules to specify multiple syntax lines.
2020-04-14 16:41:31 +01:00
Sadie Powell
e1ed9b275f
Merge branch 'insp3' into master.
2020-04-09 18:06:50 +01:00
Sadie Powell
9ebda853f5
Fix various documentation and formatting issues.
2020-03-30 17:24:12 +01:00
Sadie Powell
b9acde9aaf
Merge branch 'insp3' into master.
2020-03-18 13:51:23 +00:00
Sadie Powell
92d83e9103
Allow commands to override ERR_{NEEDSMOREPARAMS,NOTREGISTERED}.
2020-03-18 11:26:05 +00:00
Sadie Powell
600ea3b38f
Clean up the documentation of the Command and SplitCommand classes.
2020-03-05 20:47:18 +00:00
Sadie Powell
1899ce4e21
Move user command stuff from CommandBase to Command.
2020-03-05 20:47:18 +00:00
Sadie Powell
98e4ddfb21
Use C++11 inline initialisation for class members.
2020-02-06 11:25:42 +00:00
Sadie Powell
1de6f5b4a9
Merge branch 'insp3' into master.
2020-01-17 12:36:09 +00:00
InspIRCd Robot
aa692dc103
Update copyright headers.
2020-01-11 22:14:43 +00:00
Sadie Powell
fa6109b373
Replace translation macros with a C++11 initialiser list.
2019-02-15 23:15:56 +00:00
Sadie Powell
c78ecdf579
Replace the override macro with the override keyword.
2019-01-25 02:52:11 +00:00
Peter Powell
4047a143fc
Move the <disabled> tag out of the core to a new module.
2019-01-24 15:10:02 +00:00
Peter Powell
58a0a7e014
Implement IRCv3 message tag support.
...
Co-authored-by: Attila Molnar <attilamolnar@hush.com>
2018-08-13 21:51:11 +01:00
Peter Powell
384ef31bc0
Use CommandBase::Params instead of std::vector<std::string>.
...
This is presently a typedef but will soon be replaced with a class
that encapsulates both tags and parameters.
2018-07-26 20:12:14 +01:00
Peter Powell
91e0af0fc4
Add the override keyword in places that it is missing.
...
GCCs warnings for this are much better than Clangs.
2017-11-21 15:51:45 +00:00
Peter Powell
36040be295
Fix a ton of -Wsign-conversion warnings.
2017-11-17 15:33:01 +00:00
Peter Powell
0189455f5d
Remove CMD_EPERM as it is not used anywhere.
2017-10-21 22:13:15 +01:00
Attila Molnar
42de16029d
Implement Command::RegisterService()
2015-11-23 12:50:35 +01:00
Attila Molnar
b127d368e3
Move implementation of Command and CommandBase functions into a source file
2015-01-24 14:10:38 +01:00
Attila Molnar
ae7b6b9104
Remove unused CommandBase::DecodeParameter()
2015-01-24 14:08:02 +01:00
Attila Molnar
8871a02443
Switch to unsigned ints in CommandBase constructor for min and max params
2015-01-24 14:06:42 +01:00
Attila Molnar
3fef0ed889
Add ProtocolInterface::BroadcastEncap() and infrastructure for manually forwarding ENCAPs
2014-01-26 13:12:01 +01:00
Attila Molnar
11916574f6
Introduce Server class
...
- Replaces std::string server in User
- Replaces InspIRCd::ULine() and SilentULine()
2014-01-05 15:04:01 +01:00
attilamolnar
153179b574
Create the CommandBase class from Command
...
The Handle() method is not part of CommandBase, making it possible to provide a different Handle() in each class derived from CommandBase
2013-08-18 15:11:02 +02:00
attilamolnar
c25a59d903
Remove TR_END, remove TRANSLATEx() from commands that do not need it
2013-06-13 18:41:10 +02:00
attilamolnar
dac63207aa
Remove (non-functional) total_bytes counter from Command
2013-06-01 22:52:02 +02:00
Peter Powell
11cafc12d5
Tidy up source files:
...
- Use #pragma once instead of include guards.
- Move header files in src/modules to include/modules.
- Fixed various spacing issues.
2013-04-12 17:03:05 +01:00
attilamolnar
d00914ed6f
Add a flag to Command that controls whether an empty last parameter is allowed or not
2012-12-15 21:17:06 +01:00
attilamolnar
73074b0a78
Change a few signed counter variables to unsigned so they roll over later
2012-12-05 21:49:39 +01:00
Peter Powell
808a0a0957
Fix Doxygen syntax errors.
2012-07-05 21:00:35 +01:00
Robby-
46a3904619
Replace copyright headers with headers granting specific authors copyright
2012-04-19 20:58:29 +02:00
Justin Crawford
df5f76832e
Fixes for bug #12
2012-04-14 18:03:25 -07:00
danieldg
f5d5cee19a
Floating-point math should have no place in an ircd
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12442 e03df62e-2008-0410-955e-edbf42e46eb7
2010-02-12 17:06:45 +00:00
danieldg
dce58b1611
Move lots of spanningtree items to commands
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12296 e03df62e-2008-0410-955e-edbf42e46eb7
2010-01-18 23:49:23 +00:00
brain
cd712c40e1
...because every now and again, i have to do a massive commit.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
2010-01-11 03:07:32 +00:00
danieldg
54fb0cd5aa
Use ServiceProvider for inter-module dependencies
...
This will stop dependency chains from preventing module reloads when
it is not actually needed; however, it removes some failsafes that will
need to be reimplemented in order to avoid unmapped vtables.
This deprecates Request as an inter-module signaling mechanism, although
SQL still uses it.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12140 e03df62e-2008-0410-955e-edbf42e46eb7
2009-11-16 17:59:06 +00:00
danieldg
fb3964d5c0
Add Inspircd::AddServices
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12135 e03df62e-2008-0410-955e-edbf42e46eb7
2009-11-15 18:26:53 +00:00
danieldg
6b2ea83367
Move forward declarations to typedefs.h
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11967 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-24 20:03:53 +00:00
danieldg
bbb5f6ee63
Move SetClass to LocalUser
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11941 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-21 23:44:58 +00:00
danieldg
be10eab6ce
Maintain refcount of Module objects to complain about leaked pointers
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11925 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-19 20:12:22 +00:00
danieldg
fa452641bf
Remove more classbase
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11905 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-18 16:18:44 +00:00