aboutsummaryrefslogtreecommitdiffstats
path: root/include/struct.h
Commit message (Expand)AuthorAgeFilesLines
...
* Added invite exceptions (+I)Gravatar codemastr2005-01-291-0/+1
* - Added debug code to trace proto-check bugs in DEBUGMODE [IsToken() etc]•••- [Module coders] Added new function: do_cmd(cptr, sptr, cmd, parc, parv) which is an uniform method to call any other commands. For more info, see description in src/parcket.c. This will be used for any further modulization of commands that need to call other commands, like NICK (will be done soon). Gravatar Bram Matthys2005-01-251-12/+18
* Moved channel mode +G to extcmode to make room for invexGravatar codemastr2005-01-231-15/+14
* Added the ability to specify a botmotd and opermotd in a tld {}Gravatar codemastr2004-11-081-2/+3
* - Added spamfilter 'away' ('a') target (#0002057).Gravatar Bram Matthys2004-10-111-1/+3
* - Module coders: Added HOOKTYPE_REMOTE_JOIN, HOOKTYPE_REMOTE_PART, HOOKTYPE_R...••• work just the same as the HOOKTYPE_LOCAL_* variants). - Module coders: HOOKTYPE_REMOTE_CONNECT is now also called during net-merge. You can use IsSynched(sptr->srvptr) to find out if it's called due to a net merge (0) or a connect (1). - Added spamfiler 'user' (u) target. This regex is checked against nick!user@host:realname when a user connects. This makes it easy to ban drones with simple patterns. For example: '/spamfilter add u gzline 86400 Drone[0-9]+!.+@.+:Drone[0-9]' would kill any drones that have both a nick and realname with 'Drone' followed by digits. Gravatar Bram Matthys2004-10-061-1/+5
* Added channel alias {}'es and fixed an Isupport bugGravatar codemastr2004-10-031-6/+6
* Exported the isupport functions for use in Windows modules. Added a new snoma...Gravatar codemastr2004-09-041-1/+1
* Rewrote the 005 system to be dynamic and added an API to manipulate itGravatar codemastr2004-09-031-0/+1
* - Made zip/non-zip modules on win32 binary compatible. Since it was nowhere d...••• that you should pass the ZIP_LINKS etc options to 'nmake -f makefile.win32 custommodule' many people didn't do this which caused odd problems when reading certain clientstructs. Module coders: in the meantime, for 3.2.1 mods, use something like: nmake -f makefile.win32 USE_ZIPLINKS=1 ZLIB_INC_DIR="c:\dev\zlib" ZLIB_LIB_DIR="c:\dev\zlib\dll32" custommodule MODULEFILE=m_mymodule For 3.2.2+ these additional parameters will no longer be needed (but wouldn't harm either). Gravatar Bram Matthys2004-08-071-1/+3
* Added oper::modesGravatar codemastr2004-07-181-0/+1
* - Fixed "quickly-rehashing + autoconnect linkblocks = crash"-bug. This involv...••• multiple reference count bugs, one related to sptr->serv->conf, and another one related to sptr->serv->class. Both caused problems when someone did a /rehash when a server was in the process of connecting (so it might also happen when connfreq was hit and you did a /rehash). Original bug was reported by sh0 (#0001872). Gravatar Bram Matthys2004-06-251-0/+3
* - Added new logtype 'spamfilter' to log spamfilter matches•••- Updated example.conf: added all new flags we added in the example block, removed old confusing comment on SEGV logging, config.h: ripped out lPATH since that define isn't anywhere used and is only confusing. Gravatar Bram Matthys2004-06-251-1/+2
* - Fixed '/stats P' negative usercount bug (#0001691).Gravatar Bram Matthys2004-06-251-1/+3
* - internal: Added GetIP() which we will now use instead of all the Inet_ia2p(...••• because it's slightly faster (already replaced all of them in src/s_kline.c). GetIP(acptr) will return the ip for local users and remote users that support NICKIP, it returns NULL for remote users that are on non-NICKIP servers (or have non-NICKIP servers along their path). - internal: tkl_add_line now returns aTKline * - Added some more hooks: - HOOKTYPE_TKL_ADD [aClient *cptr, aClient *sptr, aTKline *tk] - HOOKTYPE_TKL_DEL [aClient *cptr, aClient *sptr, aTKline *tk] NOTE: 'NULL, NULL, tk' is used for *lines that are removed due to expiring - HOOKTYPE_LOCAL_KILL [aClient *sptr, aClient *target, char *comment] Gravatar Bram Matthys2004-06-191-0/+1
* - To be able to use /ADDLINE you now need the (new) 'can_addline' operflag (o...••• reason for this is that it's such a powerful/dangerous command. Gravatar Bram Matthys2004-06-171-0/+2
* Added CIDR supportGravatar codemastr2004-06-171-5/+15
* CmdoverrideAdd, DCCALLOW, allow dcc { }, umode +v change, register_user fix.•••- Module coders: if CmdoverrideAdd() is called for an override that is already in place, it now sets MODERR_EXISTS as errorcode and returns NULL (previously it added duplicates). In the past module coders had many issues with PERM mods... you had to use weird tricks, but now you can (and should!) just override on INIT and on HOOKTYPE_REHASH_COMPLETE. - Moved register_user declaration to h.h, updated call in m_pingpong.c (due new 'ip' field). - Usermode +v ('receive dcc send rejection notices') is oper-only now for privacy reasons. - Added dcc allow { }, which allows one to make exceptions over deny dcc { }. - Added deny dcc::soft and allow dcc::soft item, if set to 'yes' it allows someone to explicitly override it per-person via /DCCALLOW (see next). - Added DCCALLOW system, taken directly from bahamut. With this system you can block certain (or all) DCC SENDs and then allow the user to 'override' this limit for every user he/she trusts via '/DCCALLOW +User'. This is an attempt to stop (or at least limit) the spreading of viruses/etc. See '/DCCALLOW HELP' for more info. - Added example dccallow.conf which filters everything except some known 'safe types' (jpg, jpeg, png, gif, etc). Note that the purpose of this file is NOT to get a complete list, rather to limit it to a few 'known safe' entries. - Added set::maxdccallow: max number of entries of the DCCALLOW list (default: 10). Gravatar Bram Matthys2004-06-101-2/+20
* Various stuff:•••- Added release notes (no, we won't release 3.2.1 anytime soon.. just updating ;p). - Added various extra messages to make it a bit more easier for people who are upgrading (win32 commands.dll, cloaking mod). - Made win32 ssl<->non-ssl modules binary compatible. - Added ssl/non-ssl check in Mod_Version on *NIX. - Added set::options::flat-map: This makes all servers look like they are linked directly to the server you are on (/map, /links), thus you cannot see which server is linked to which ("hopcount"). This can make it a bit harder for kiddies to find any 'weak spots' (which server to attack/[D]DoS). Obviously opers will always see the real map. Gravatar Bram Matthys2004-05-281-0/+4
* Added NICKIPGravatar codemastr2004-05-271-0/+6
* - Changed the way MSG/NOTICE <prefix>#chan works:••• - It now goes to <prefix> and higher, so '/notice +#chan hi!' goes to +vhoaq - You need at least voice in order to be able to msg/notice +#chan, %#chan or @#chan - You need at least ops in order to be able to msg/notice &#chan or ~#chan - Any multi-prefix targets will be converted automatically (eg: ~&@#chan to @#chan). - internal: use of the CHANOPPFX macro is now deprecated. All of this was done to make it a bit more 'safe' and userfriendly (#0001812). Gravatar Bram Matthys2004-05-141-5/+2
* - Modulized cloakingGravatar Bram Matthys2004-05-121-0/+1
* Added module support for WindowsGravatar codemastr2004-05-121-12/+11
* - Include openssl/md5.h and openssl/ripemd.h if compiled w/SSL, this seems ho...••• should be done and also makes unreal w/SSL able to compile on OpenBSD (3.5). Gravatar Bram Matthys2004-05-091-0/+2
* - Fixed /spamfilter reason field bug.. things were double escaped sometimes,••• especially in post-RC2-cvs this was noticable. Reported by Fury (#0001670). - help.conf: updated snomasks section. Gravatar Bram Matthys2004-03-191-1/+1
* More win32 remote include fixesGravatar codemastr2004-02-251-0/+1
* Fixed a remote include problem with deleting filesGravatar codemastr2004-02-251-0/+1
* - Fixed an issue where chanmode +f was often set by the server again••• in a netjoin when there was no need to (nothing to synch). - Added spamfilter::except which allows you to specify targets (eg: channels) where spamfilter should not take action. Requested by Fury (#0001586). Ex: set { spamfilter { except "#spamreport,#help"; }; }; Gravatar Bram Matthys2004-02-251-0/+6
* - Minor fix for previous.•••- Improved 'viruschan' spamfilter target: - better msg after the forced join - +oaq's in set::spamfilter::virus-help-channel receive a notice about which filter the user matched. - it disables all commands except PONG, ADMIN, and msg/notices to set::spamfilter::virus-help-channel. - Made snomask +S also show the spamfilter reason field. - Added class::pingfreq checking, should be 30-600 now.. else you might get mysterious (mass) disconnect issues. - Lol, I made /connect dissapear during modulizing ;). Gravatar Bram Matthys2004-02-221-9/+12
* Moved qlines to TKLGravatar codemastr2004-02-221-0/+1
* spamfilter improvements•••- Fixed a few wrong macro's (ircstrdup/ircfree) in s_conf.c causing very weird behavior... This also fixes a bug where set::spamfilter::ban-reason would have the value of ban-time. - Improved spamfilter again. - The new syntax is: /spamfilter [what] [type] [action] [tkltime] [reason] [regex] [tkltime] specifies the duration of any *lines placed by this rule. [reason] specifies the *line, kill and/or block reason.. no spaces allowed, but '_' will be escaped to a space. In both cases you can simply use '-' to skip and use the default. Ex: /spamfilter add p block - - Come watch me on my webcam /spamfilter add p gline 3h Please_go_to_www.viruscan.xx/ nicepage/virus=blah Come watch me on my webcam - A message is now shown if the msg/notice/dcc is blocked. - There are 2 new spamfilter action types: 'dccblock' will mark the user so (s)he's unable to send any files by DCC. 'viruschan' will part the user from all channels and join set::spamfilter::virus-help-channel (default: #help). this action might be improved to do more later. - Internal: added EXTTKL PROTOCTL, this determinates if 10 parameters instead of 8 are supported for m_tkl (used by spamfilter add). This new system needs some testing... :) Gravatar Bram Matthys2004-02-201-14/+27
* sjoin, pass, userhost, ison, silence modulized...Gravatar Bram Matthys2004-02-171-0/+11
* - Ripped out fast (bad)words support out of spamfilter to avoid confusion, al...••• spamfilter::word to spamfilter::regex to make it even more clear (since we match on the whole line and have nothing to do with words.. 'word' doesn't make sense). - Updated docs with some better regex examples, reported by AngryWolf (#0001520). Gravatar Bram Matthys2004-02-061-2/+0
* - Added can_dccdeny operflag so you can give your local/global opers access t...••• Co-admin, admin, sadmin and netadmin get it by default. Suggested in #0001247. - Updated operflag docs. Gravatar Bram Matthys2004-02-051-11/+13
* SSL fix and added can_setqGravatar codemastr2004-01-301-2/+4
* spamfilter etc... *pray*Gravatar Bram Matthys2004-01-281-13/+15
* Added set::silence-limitGravatar codemastr2004-01-181-2/+1
* Added EXBCHK_PARAM and some noew logging flagsGravatar codemastr2004-01-171-0/+3
* - internal: Ok, I'm committing this in parts... did most of the TKL spamfilter••• integration now, no.. it doesn't work at all yet but most of the internal stuff has now been done (but I temporarely need to work on other things now). moved/added a lot of regex stuff, banaction/spamfilter helper functions, etc into s_misc.c. [note: current code has some bugs but since the stuff isn't used that's no problem... it's also a bit ugly, do NOT mail me about these things ;p] - Enabled talk-trough-+M for opers (just like +m) - Disabled talk-trough-+m/+M for opers if NO_OPEROVERRIDE is defined - Display zlib/SSL version in /version (oper only)... will prolly be improved later. - updated doc/compiling_win32.txt Gravatar Bram Matthys2004-01-161-3/+20
* Fixes for TRE under win32Gravatar codemastr2004-01-081-0/+4
* Fixed a compile bug regarding TREGravatar codemastr2004-01-071-1/+1
* Integrated TRE into UnrealGravatar codemastr2004-01-041-5/+1
* - internal: Modified TKL system (getting ready for anti-spam system):••• Instead of 1 big list of *lines, it's now an array to easily distinct between types. Also made tk->usermask static (USERLEN+2) instead of dynamic. These changes should give enough speed improvement to make the new anti-spam/anti-ads feature fast enough. Gravatar Bram Matthys2004-01-011-2/+7
* - Added some additional warnings for insane large values for allow::maxperip,...Gravatar Bram Matthys2003-12-311-8/+8
* - Added "extended bans". An idea from SorceryNet ircd.••• These bans look like ~<type>:<stuff>. Currently the following bans are available: ~q: quiet bans (ex: ~q:*!*@blah.blah.com). People matching these bans can join but are unable to speak, unless they have +v or higher. ~c: channel bans (ex: ~c:#idiots). People in #idiots are unable to join the channel. ~r: gecos (realname) bans (ex: ~r:*Stupid_bot_script*). If the realname of a user matches this then (s)he is unable to join. NOTE: an underscore ('_') matches both a space (' ') and an underscore ('_'), so this ban would match 'Stupid bot script v1.4'. These bantypes can also be used in the channel exception list (+e). +e ~r:*w00t* makes anyone with 'w00t' in their realname able to join, and +e ~c:#admin makes anyone in #admin able to join, etc.. This system allows modules to add extended bantypes too. This feature requires some additional testing, also the module interface will probably be changed in the next few weeks, and perhaps more extended bans will be added before next release.. we'll see... Gravatar Bram Matthys2003-12-191-0/+5
* Various fixes and changesGravatar codemastr2003-12-161-1/+8
* - Made "chanop notices" only go to @#chan on non-prefixaq servers (and to ~&@...••• internal: added ugly macro CHANOPPFX which is "~&@" if prefix_aq, else "@". Gravatar Bram Matthys2003-12-101-0/+6
* - Added oper::maxlogins which allows you to limit the number of concurrent se...••• with the same oper block. Suggested by kain. - Made /dns oper-only (the ircd command, not your client /dns command :p). - Various help.conf fixes. Reported by nukie (#0001373). Gravatar Bram Matthys2003-11-191-0/+2
* - Made win32 work again (broke it by /module patch 35 minutes ago).Gravatar Bram Matthys2003-11-111-0/+2
* - (Internal) Added __attribute__ format checking for most format string funct...••• this will currently produce a lot of warnings with -Wall. - Fixed 159 of 184 warnings detected by the above, the other warnings are false. Most warnings had to do with long vs int, and thus the format strings (%d->%ld) or the vars (int->long) have been changed (many of these were time_t/TS vs int). Only a few rare crashbugs were discovered. - Module coders: for HOOKTYPE_LOCAL_CHANMODE the 'sendts' parameter was changed from type 'int' to 'time_t', while in most circumstances (like on ia32) you won't notice, I suggest you to update your callback functions anyway. - Possibly fixed an issue with set::modes-on-join and mode +f, it could have set random remove-chanmode times in the default chanmode line. Gravatar Bram Matthys2003-11-021-1/+1