Bram Matthys
25687c2bed
New efuncs: tkl_ip_hash() and tkl_ip_hash_type(), for the rmtkl module.
2019-08-11 14:48:07 +02:00
GottemHams
ae8c0af51c
Ported rmtkl (remove TKLs in bulk) while waiting for Syzop to implement some changes (compiles with a warning at the moment)
2019-08-10 21:55:34 +02:00
GottemHams
f6df735291
floodprot: Floodtype 'r' for handling per-user repeated PRIVMSGs (CTCP/notice/ACTION/regular message) + action 'd' for dropping stuff for floodtypes 't' (per-user text) and 'r'
2019-08-10 19:25:51 +02:00
Bram Matthys
3c47e22b75
These TODO/FIXME's can be removed (well, except 1)
...
@skipci
2019-08-10 14:14:54 +02:00
Bram Matthys
5af31c4a30
These FIXME's can be removed.
...
@skipci
2019-08-10 14:12:29 +02:00
Bram Matthys
a185e341e6
Update client_accepts_tag() to use the mtags API rather than
...
hardcoded if() statements.
2019-08-10 13:21:04 +02:00
GottemHams
2c8f909759
Ported a major chunk of m_forward's functionality to chanmodes/link, with a bunch of improvements =]
2019-07-27 21:10:13 +02:00
GottemHams
3a1ae06345
cmdrestrict should be able to override any command, also couple of minor improvements
2019-07-27 13:56:30 +02:00
i
8c11ebd0e7
Make allow {} block always continue when there were no password or wrong password was specified.
2019-07-18 18:47:05 +03:00
i
c9908a55c9
Added HOOKTYPE_CONFIGPOSTTEST for webredir module, to check if there is no set::webredir.
2019-07-16 01:18:41 +03:00
i
e30de7b7a6
Removed default url for webredir module and refuse to load without url.
2019-07-15 21:59:41 +03:00
GottemHams
19aad17d4e
cfgstruct is not necessary for cmdrestrict :D
2019-07-14 23:08:42 +02:00
GottemHams
655027f5db
Merge branch 'unreal50' of github.com:syzop/unrealircd-next into unreal50
2019-07-14 23:05:08 +02:00
GottemHams
e5cfc5d798
cmdrestrict v1.0: Restrict specific commands until certain conditions have been met =]
2019-07-14 23:04:15 +02:00
i
53146f252c
New module webredir (do 301 redirect for HEAD/GET/POST/PUT commands to the specified URL).
2019-07-14 22:37:55 +03:00
Bram Matthys
1c5c501dc1
Remove m_nopost module as it is no longer useful.
...
UnrealIRCd already protects (for maaaany years) with ping cookies against
this attack. Making the m_nopost redundant.
Also, another module may be more useful (more on this soon...).
2019-07-14 19:07:32 +02:00
i
d22a2a20f0
Make usermode +T block channel CTCP's as well.
2019-07-14 19:01:31 +03:00
Bram Matthys
d9bd18c483
Remove TODO comment, now that it has been done [skip ci]
2019-07-13 16:00:49 +02:00
Bram Matthys
c2445fa9c6
Add history_backend_null, which can be useful on servers where you
...
explicitly do not want to remember any channel history, such as on
a hub server to save memory.
Also, on Windows, ensure to compile all history_backend_*.c
2019-07-13 15:53:23 +02:00
Bram Matthys
3b67e83275
Add some FIXME's to labeled-response. Not going to work on that right now,
...
since there is more important things to do...
[skip ci]
2019-07-13 15:40:58 +02:00
Bram Matthys
806256e9c2
Move generate_batch_id() to core. Use chathistory BATCH type, if supported.
2019-07-13 15:25:56 +02:00
Bram Matthys
ccfeac6eae
Don't re-order mtags on history playback
...
Strictly, this is not a problem, but.. for our test framework it is better
and it looks cleaner too.
2019-07-13 08:20:12 +02:00
Bram Matthys
65b5e21464
Fix double 'time' mtag on history playback
2019-07-13 08:18:53 +02:00
i
ca094f0a75
New set::ping-warning option (how fast the server should reply to PING before sending a warning to opers).
2019-07-11 16:47:02 +03:00
i
60ebc1375e
Support channel status prefixes for SAJOIN.
2019-07-10 17:42:46 +03:00
Bram Matthys
7ac11973d0
Fix crash in TOPIC with certain remote server traffic.
...
And make sure we don't change topic text if it comes from a remote link.
2019-07-06 17:48:44 +02:00
Bram Matthys
bbbdba1083
Make chanmodes/link module un-PERM. Thanks due to previous change.
2019-06-29 09:11:20 +02:00
Bram Matthys
96ad3e8f71
Nothing special. Add a comment to blacklist module, in case someone
...
things it would be wise to make it unPERM ;)
[skip ci]
2019-06-29 08:55:36 +02:00
Bram Matthys
5d6f0a79ad
Make jumpserver module non-PERM, thanks to LoadPersistentPointer etc.
2019-06-29 08:52:52 +02:00
Bram Matthys
fbf4946777
Update tkldb to use new LoadPersistentInt/SavePersistentInt functions.
...
And before that, I fixed these functions so they actually work :D
2019-06-29 08:44:12 +02:00
i
780d9e95a2
extbans/partmsg: remove unused leftovers
2019-06-29 00:41:23 +03:00
i
cf3d01da06
extban ~p for hiding part/quit message
2019-06-29 00:30:10 +03:00
Bram Matthys
5182c664d1
Easier API for just-commited persistent variables. Example:
...
LoadPersistentPointer(modinfo, removefld_list, floodprot_free_removefld_list);
SavePersistentPointer(modinfo, removefld_list);
The above example was for a pointer, there are also functions for int and long,
which are even more simple:
LoadPersistentInt(modinfo, somevar)
SavePersistentInt(modinfo, somevar)
and
LoadPersistentLong(modinfo, somevar)
SavePersistentLong(modinfo, somevar)
both are untested, but will be tested soon...
2019-06-28 22:08:45 +02:00
Bram Matthys
0920967cc4
New module_load_variable / module_save_variable functions
...
and made floodprot to use these functions.
TODO: 1) Different functions for pointer/int/long, 2) macro?
2019-06-28 21:02:29 +02:00
Bram Matthys
7fe1848340
Make floodprot no longer PERM so it can be reloaded. Useful if we ever
...
make a mistake in the module so we can upgrade it on-the-fly.
Or if someone wants to get rid of it.
TODO: consider abstracting the saving/restoring of vars.
2019-06-28 20:14:32 +02:00
Bram Matthys
1f5acd852b
Update tkldb to use (new) MODDATATYPE_LOCALVAR.
2019-06-28 19:11:34 +02:00
Bram Matthys
2a7fc8042d
Add new moddata types: MODDATA_LOCALVAR and MODDATA_GLOBALVAR. Untested.
...
Code using it will soon follow (and then it will be tested :D)
2019-06-28 18:35:37 +02:00
Bram Matthys
38e9c100d4
Get rid of include/threads.h (unused)
2019-06-26 17:27:45 +02:00
Bram Matthys
c673e5bbc6
Get rid of now meaningless include/hash.h
2019-06-26 17:17:20 +02:00
Bram Matthys
8e44d4d5ab
Get rid of weird NullChn, which is now just NULL :D
2019-06-26 17:13:45 +02:00
Bram Matthys
e8f336622a
u_int64_t -> uint64_t
2019-06-26 17:03:07 +02:00
Bram Matthys
709c84fff9
Remove stupid hash table layer for channels that only eats 256k+ extra
...
memory and causes unnecessary slowdown. Stupid ->hits and ->links.
And get rid of "return (xyz)", must be "return xyz" :D
2019-06-26 16:56:17 +02:00
Bram Matthys
c75a1ebb25
Make src/modules/history_backend_mem.c use SipHash. And also,
...
make the module permanent.. which is probably a good idea :D
2019-06-26 15:49:54 +02:00
Bram Matthys
0d7f9e219e
Update reputation module to use SipHash
2019-06-26 14:13:12 +02:00
Bram Matthys
f6eac29592
hash_nick_name -> hash_client_name, hash_find_nickserver -> hash_find_nickatserver
...
Both were confusing :)
2019-06-26 13:45:55 +02:00
Bram Matthys
d5b643ceee
Rewrite hash table code to use SipHash (more to follow)
2019-06-26 13:24:02 +02:00
Bram Matthys
2894681c4f
Cleanup m_topic. Handle the if's in a smart way rather than indenting X levels.
2019-06-26 06:55:01 +02:00
Bram Matthys
849d57be40
Fix msgid inconsistency in KICK. Thank you, new test framework :]
2019-06-24 14:00:47 +02:00
Bram Matthys
4213ca9ab1
Add MyClient() call in QUIT for set::part-instead-of-quit-on-comment-change
...
handling. Since we shouldn't PART remote users.. ;)
2019-06-23 17:14:35 +02:00
Bram Matthys
6fab82124a
Call is_banned with BANCHK_LEAVE_MSG from both PART and QUIT.
...
The latter only if iConf.part_instead_of_quit_on_comment_change.
2019-06-23 17:10:41 +02:00