danieldg
7d93921aab
Describe module purpose in /MODULES output
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11757 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-22 01:05:35 +00:00
danieldg
069a2ef214
Clean up Command constructor
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11707 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-13 20:32:27 +00:00
danieldg
1c1c5fc3f0
Remove CMD_LOCALONLY, enforce use of GetRouting for routed commands
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11671 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-03 15:53:15 +00:00
danieldg
24731c63b6
Add Module* creator to Command and ModeHandler
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11631 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02 00:48:48 +00:00
danieldg
2630a87bb1
Change allocation of commands/modes
...
API change: Commands passed to AddCommand are no longer deleted automatically
This removes lots of needless heap allocation and fixes a few memory leaks by
allocating commands and modes as part of the Module rather than creating them
separately in the module constructor.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11592 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-02 00:43:04 +00:00
w00t
929cd28544
Convert snomask 'A' into snomask 'a' for local announcements, add snomask 'A' for remote announcements.
...
Make SAMODE send a snotice to 'a' and remote to 'A' - fixes bug #822 , reported by Taros
We really need a wrapper to use these, but, for now it's usable.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11304 e03df62e-2008-0410-955e-edbf42e46eb7
2009-04-16 15:51:05 +00:00
psychon
b6dbd6caab
Update all wiki links to point to the new wiki. This was done automatically with the following command, only .Makefile.inc got some indent fixups by hand.
...
for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org# ' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/# ' -i $file ; done
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-15 12:42:35 +00:00
danieldg
78ae403e54
Fix bug #775 , GRELOADMODULE displays success message on failure. Reported by Taros
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11214 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-13 23:46:56 +00:00
w00t
43847ec9c7
Update copyrights for 2009.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
2009-01-02 18:16:05 +00:00
w00t
8de87c2a9b
Change module versions to use a string instead of fixed digits, and use propset ID to auto-set versions, so we don't have (essentially unused) module versions.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10291 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-25 20:35:51 +00:00
w00t
a1a7b96a8c
Match conversion stuff.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10216 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-22 16:14:36 +00:00
pippijn
d185decae9
fixed some indentation and spacing in modules
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9888 e03df62e-2008-0410-955e-edbf42e46eb7
2008-06-11 11:35:23 +00:00
brain
e3bd782207
More done
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9759 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-19 00:29:53 +00:00
peavey
5f6955a43e
Convert convert convert
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9624 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 00:18:01 +00:00
brain
c2957516bc
Finally change all the Version() objects
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9185 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-24 13:40:12 +00:00
brain
68730d4c97
Wheeee for HUGE commits. Convert all numerics to WriteNumeric so that OnNumeric can capture them.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9175 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-22 12:03:43 +00:00
brain
dd36852a52
Wheee, mass commit! this adds const stafety, throwing a compile error if anyone does: "parameters[n] = blahvar;" in a command handler etc. where they REALLY SHOULD NOT fuck with the value and should
...
copy the pointer.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8971 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-20 19:07:07 +00:00
w00t
449bbb6e04
Slight API tweak. Change Command to take char * instead of char in it's constructor, this avoids confusion/generates a compile error if someone mixes up flags with number of params, instead of working but not working as expected in a weird manner.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8918 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-13 10:39:25 +00:00
w00t
4426a2fc44
Fix.. snomask O is already taken (ffs) so use A instead
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8729 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17 15:54:33 +00:00
w00t
94afde43b0
Remove InspIRCd::WriteOpers in favour of snomask O
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8728 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-17 13:07:49 +00:00
w00t
e4acbc95b8
Header update: 2007 -> 2008
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-10 13:27:07 +00:00
brain
5c4b7d3003
Somehow, we missed one
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8529 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 21:26:24 +00:00
brain
59c6dc9853
Fix non-POD passing
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8528 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 21:25:29 +00:00
brain
cadc11999e
Convert all to new Attach() system. The Implements() method needs removing from all modules as it is dead weight.
...
WARNING: there are segfaults here! HERE BE DRAGONS, i am not finished!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8510 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 18:30:43 +00:00
w00t
b669f920ea
Another big commit, just to please all my fans out there.. cmd_* -> Command*. Muahaha.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8290 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-21 21:43:48 +00:00
w00t
b57c7f4e46
In the grand tradition of huge fucking commits:
...
- chanrec -> Channel
- userrec -> User
Enjoy.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8204 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 20:59:05 +00:00
w00t
694e307c09
class command_t -> class Command. Whey :D
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8203 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-15 20:55:55 +00:00
om
8394be69a0
Move everything module-related out of InspIRCd and into ModuleManager, there is a ModuleManager instantiated as InspIRCd::Modules. Several of the function names have changed slightly as well. e.g. Instance->FindModule(m_foobar.so); is now Instance->Modules->Find(m_foobar.so);
...
All modules in the core distribution should also be updated in line with these changes.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7985 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-28 23:32:41 +00:00
w00t
2b3394855d
Add a metric assload of TRANSLATE macros to modules.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7892 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 16:05:59 +00:00
w00t
4e7c9f5a92
Remove unnecessary header traffic
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7885 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-27 14:49:08 +00:00
brain
5f17af5118
Implement bug #396 , feature request from Bricker
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7824 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-25 11:26:44 +00:00
w00t
31e2d05225
Add VF_COMMON to a lot modules which require it. Reported by danielg in bug #369 and bug #370 . Thanks, and sorry for the delay. Also fix one or two erroneous CMD_FAILURE that are more understandable as CMD_LOCALONLY. :)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7641 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-03 21:22:10 +00:00
peavey
f2acdbc382
OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 17:30:04 +00:00
peavey
bab14f0dd2
'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are auto skipped by svn.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16 17:14:45 +00:00
pippijn
2b8ce39c6e
Removed superfluous semicolons
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7423 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-03 16:40:09 +00:00
w00t
5b3c052062
Conversions
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7353 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-17 13:29:37 +00:00
special
a338648303
Propagate the gunloadmodule command even if the module isn't loaded locally; bug #299
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7132 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-24 23:36:39 +00:00
brain
76d7e8a068
Header rearrangement, move inspircd.h to top, remove stdio, stdlib, stdblahblah that we dont even use, remove redeclared <string>, <map>, <vector>.
...
This (1) fixes the irc::string::move warnings on vc8 (2) speeds up compile a lot
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7098 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-21 19:13:39 +00:00
w00t
9cf56d917d
Windows support. Tested and working to compile on freebsd and linux. Next step is to make sure it actually works in windows too. ;p. Add Burlex to contributors.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-19 15:56:42 +00:00
w00t
9c3a20c151
Last commit of that batch: Fix some returncodes (some stuff here really didn't need to be routed), clarify a few in comments, and also add some todos for myself next.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6978 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-11 18:09:22 +00:00
w00t
3a554ef1e9
Remove global namespacing, makes modules compile FASTAH. Also massive update on headers (change to InspIRCd Development Team, extend copyright to 2007).
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5995 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-15 21:33:22 +00:00
brain
7f9c6c5118
Insert massive change here.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5504 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-19 16:17:06 +00:00
brain
4b0f6c610f
Now with binary versioning goodness
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5366 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-01 14:59:38 +00:00
special
a35628400f
Added /greloadmodule to m_globalload.so
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5323 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-25 17:35:16 +00:00
brain
7c0c957577
Annotations
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5255 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-15 14:25:10 +00:00
brain
71ad308979
All commands now return results CMD_FAILURE or CMD_SUCCESS
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5150 e03df62e-2008-0410-955e-edbf42e46eb7
2006-09-06 17:58:59 +00:00
brain
6050df73f4
Just to mess with om's head, remove helperfuncs.h from everywhere
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4900 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11 23:31:13 +00:00
brain
846fcfe452
commands.cpp:extern InspIRCd* ServerInstance;
...
helperfuncs.cpp: extern InspIRCd* ServerInstance;
xline.cpp:extern InspIRCd* ServerInstance;
The last 3 extern's in the entire program!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4866 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11 01:39:21 +00:00
brain
66098d307c
(Bigger than it looks, i did this with perl inplace edit) -- commands now take an InspIRCd* param to their constructor, so that you can do stuff within them without an extern
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4862 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-11 00:15:07 +00:00
brain
d0b4bb3811
Last of Server:: methods moved to InspIRCd::. Server:: removed.
...
This will need a real good tidyup later, because now everything is in the right place, but its a mess because for now i threw them into place (e.g. space indenting, etc)
Next on the todo: Make command handlers have a ServerInstance (gank!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4861 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-10 23:53:48 +00:00