Peter Powell
11cc922584
Fix the hostchange set action swapping the host/value fields.
2019-01-14 21:33:51 +00:00
Peter Powell
9a312de26b
Improvements to the hostchange module.
...
- Get rid of <host> and merge the prefix and suffix values into the
<hostchange> value.
- Remove the 'suffix' action. This has been replaced by the 'set'
action.
- Add the 'addaccount' action. This adds the users account to their
hostname.
- Use the <hostname:charmap> characters when removing invalid chars
in addnick mode.
- Allow multiple entries on each hostmask so that they can fall
through if a certain value is not acceptable.
Closes #816 .
Closes #1001 .
2018-09-16 12:38:14 +01:00
Attila Molnar
3fc88ba7c9
Remove a few unnecessary .c_str() calls
2014-01-31 14:35:13 +01:00
attilamolnar
c202dea024
Replace OnRehash() with ReadConfig() that is called on boot, on module load and on rehash
...
This eliminates the need for calling OnRehash() in init()
2013-08-30 13:15:10 +02:00
attilamolnar
d24619c012
Automatically attach modules to events
2013-08-04 16:08:57 +02:00
Peter Powell
54d10d53c7
Remove $Core and $Mod* comments apart from $ModDep.
2013-07-04 15:51:00 +01:00
Peter Powell
4ab1c43c1e
Tidy up keywords on module methods.
...
- Remove virtual keyword from a ton of methods which don't need it.
- Add override keyword to a ton of methods which do need it.
2013-05-15 21:41:36 +01:00
Peter Powell
226a95aab0
Add method for writing server notices.
...
This allows us to send a server notice to a user without worrying
about whether they are registered or not.
If a user receives a server notice and they are not registered
then the nickname field will contain an asterisk instead of their
nick name.
2013-05-14 23:30:12 +01:00
attilamolnar
26e7bb0b9a
Whitespace and empty destructor removal, minor coding style changes
2013-04-01 21:56:13 +02:00
attilamolnar
84a1569cd6
Dynamically determine the size of the eventlist[] passed to Attach()
...
m_sqlauth was attached to I_OnUserDisconnect but didn't provide a handler for it, remove
2012-12-02 19:40:00 +01:00
attilamolnar
ac7defcd3e
Attach to events and register services in init()
2012-12-02 19:39:46 +01:00
attilamolnar
a4db7bf9af
Remove usage of the deprecated ConfigReader
2012-11-12 21:48:42 +01:00
Steven Van Acker
50ea0efc0d
wrong order of arguments to Host()
2012-11-09 15:36:38 +01:00
Steven Van Acker
6cb22b68b9
use documented "value" attribute instead of undocumented "newhost"
2012-11-09 15:36:08 +01:00
attilamolnar
c8b41aa5d2
Remove superfluous std::string()s
2012-10-12 03:57:39 +02:00
attilamolnar
4b77a70856
m_hostchange No reason to prioritize after m_cloaking
2012-07-26 02:25:35 +02:00
attilamolnar
bcd91de347
m_hostchange Remove string copy
2012-07-26 02:25:35 +02:00
attilamolnar
7297c11c72
m_hostchange Store host change action as an enum value instead of a string, stop using pointers and std::map for no reason, warn about config problems
2012-07-26 02:25:34 +02:00
Robby-
46a3904619
Replace copyright headers with headers granting specific authors copyright
2012-04-19 20:58:29 +02:00
Kyle Fuller
8744cc1f74
m_hostchange: Fix a typo preventing port filters from working
2012-03-22 16:23:03 +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
123eac3f25
Change module API to use LocalUser* where correct
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11943 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-21 23:45:19 +00:00
danieldg
5d03657b63
Move some local-only fields to LocalUser
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11942 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-21 23:45:08 +00:00
danieldg
fa5abf73fe
Get rid of more unneeded parent classes
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11930 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-20 04:40:18 +00:00
danieldg
67a4a9b623
Remove dummy API_VERSION from Version constructor
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11887 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-17 17:53:31 +00:00
danieldg
6d03943426
Remove InspIRCd* parameters and fields
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-26 14:13:13 +00:00
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
6278262baa
Rename User::GetPort to GetServerPort to clarify its purpose
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11577 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-01 15:07:27 +00:00
danieldg
0da6b3a13d
OnRehash changes: split to multiple hooks to clarify use and prevent explosion of rehashes on a /REHASH *
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11388 e03df62e-2008-0410-955e-edbf42e46eb7
2009-05-24 02:53:45 +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
w00t
27e0df3719
Remove redundant PriorityState, enum Priority does the exact same thing.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11121 e03df62e-2008-0410-955e-edbf42e46eb7
2009-02-16 22:14:36 +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
w00t
58f4306bb6
Revert automated conversion by Special, as it (unfortunately) neglects some details. It provides a useful start point, though, so it'll be used as the basis for the final conversion.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10215 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-22 15:16:46 +00:00
special
517a26252a
Fix a lot of calls to match() and uses of wildcard.h (which doesn't exist anymore) after w00t broke them. Still broken pending a few more changes (it's all w00t's fault.)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10214 e03df62e-2008-0410-955e-edbf42e46eb7
2008-08-22 10:09: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
0276e5138a
Remove .c_str()'s in match() calls that are no longer needed as match() natively takes std::strings
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9737 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-18 17:51:36 +00:00
brain
638381c529
And more of them
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9186 e03df62e-2008-0410-955e-edbf42e46eb7
2008-03-24 13:41:25 +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
53afaa7cad
Remove Implements() method from every module. booya.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8536 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 22:51:22 +00:00
brain
12b9855339
Honking huge commit. Removal of DELETE() template that never worked right anyway
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8527 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 21:24:40 +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
brain
9b131bef32
More craq
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8507 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 16:50:50 +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
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
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
f09013dd67
Whoops, found a bug in it anyway :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7791 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-21 20:08:05 +00:00
brain
b7e299c2e1
Implement feature in bug #395 reported by stealth, and tidy up a bit
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7789 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-21 18:52:07 +00:00
brain
fc8b284c2a
Add <hostchange:ports> to the m_hostchange module to implement feature in bug #363
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7762 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 20:52:57 +00:00