Commit Graph

64 Commits

Author SHA1 Message Date
imaginos 835e78fdec added back in global module functionality of handling config lines dynamically
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@979 726aef4b-f618-498e-8847-2d620e286838
2008-03-17 04:20:35 +00:00
psychon cb066e2425 Add OnRehashDone() module call
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@969 726aef4b-f618-498e-8847-2d620e286838
2008-02-29 16:47:34 +00:00
psychon f74ab87e19 And fix a shitload of trailing whitespaces and space / tab mixups in ZNC
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@959 726aef4b-f618-498e-8847-2d620e286838
2008-02-16 12:52:11 +00:00
psychon 0adf4e5af3 Remove OnConfigLine() module call
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@945 726aef4b-f618-498e-8847-2d620e286838
2008-02-07 22:25:58 +00:00
psychon e72c445694 Clean up includes
All the headers are now self-contained (g++ Header.h -o /dev/null).

Some system headers where moved to the .cpp they are actually needed in,
some of our own headers are includes less. (Especially MD5.h)

Headers are sorted alphabetically while in e.g. FileUtils.cpp FileUtils.h
is the first file included.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@915 726aef4b-f618-498e-8847-2d620e286838
2008-01-07 21:31:16 +00:00
psychon eeec633e30 Update copyright header for 2008
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@910 726aef4b-f618-498e-8847-2d620e286838
2008-01-07 21:13:07 +00:00
psychon 55a3fa0e05 Remove OnFinishedConfig() module call
No one used it anyway


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@909 726aef4b-f618-498e-8847-2d620e286838
2008-01-03 21:00:25 +00:00
psychon 1360effd31 This covers the code changes for the datadir move (which is now finished)
Based on darix' patch I wrote this. Modperl's changes were not tested since I
didn't find someone who could test it. Well...

Ah and btw it regenerates configure


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@902 726aef4b-f618-498e-8847-2d620e286838
2007-12-12 21:15:44 +00:00
psychon ee350ab744 Change second argument to module in OnLoad() from sErrorMsg to sMessage.
This message is always displayed when the module returns (well, screw webadmin)
and this way a module can notify the user if it loaded but something unexpected
happened.

As you might guess, no one uses this ATM :)

Proposal comes from prozac


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@855 726aef4b-f618-498e-8847-2d620e286838
2007-10-28 17:57:07 +00:00
psychon a09a7e79f6 Switch to the copyright headers the GPLv2 wants us to have
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@843 726aef4b-f618-498e-8847-2d620e286838
2007-09-21 18:55:33 +00:00
psychon a3b405bd07 sync from my branch rev 983 and 993:
- module api change, if module fails to load it can give back an useful error message
- give a message when client doesnt supply a password when connecting
- some minor cleanup


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@803 726aef4b-f618-498e-8847-2d620e286838
2007-05-16 22:42:00 +00:00
psychon f601db2cd8 merge with rev 932 psychon branch:
- module call for /me's
- timestamps for playback and query buffer
- WALLOP stuff / fix
- properly join channels _after_ namesx or uhnames were set up
- dont screw up raws on reconnect when you ran /lusers
- change default quit msg and version reply to CZNC::GetTag(false)
- change CZNC::GetTag() to point to sf.net
- kind of an rewrite for partyline, added fixed channels (this doesnt work on irssi,
		did it ever work?)
- add the timestamp support to webadmin too
- add ConnectDelay config option to avoid being killed because we connected too fast
- make znc handle usermodes correctly


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@799 726aef4b-f618-498e-8847-2d620e286838
2007-05-16 22:13:17 +00:00
prozacx 994650e2a7 Patched using fix_no_modules_support.patch by psycho
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@767 726aef4b-f618-498e-8847-2d620e286838
2006-09-16 18:19:59 +00:00
prozacx 6dcacaa79e Added contact info
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@752 726aef4b-f618-498e-8847-2d620e286838
2006-09-13 07:39:48 +00:00
prozacx 48ba6e4f36 Explicitly set RTLD_LOCAL, some systems require it - thanks x-x
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@738 726aef4b-f618-498e-8847-2d620e286838
2006-06-26 19:23:51 +00:00
prozacx d91109d777 Added OnFailedLogin() global module hook
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@720 726aef4b-f618-498e-8847-2d620e286838
2006-04-06 09:10:04 +00:00
prozacx b740d7cc36 Refactored module hook calling macros into one master macro
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@708 726aef4b-f618-498e-8847-2d620e286838
2006-03-22 08:02:37 +00:00
prozacx 57fb9fc867 Added OnDeleteUser() global module hook
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@702 726aef4b-f618-498e-8847-2d620e286838
2006-03-19 22:13:02 +00:00
prozacx 97fd4d0c7b Added OnLoginAttempt()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@689 726aef4b-f618-498e-8847-2d620e286838
2006-03-16 00:04:14 +00:00
prozacx a9e60b43c5 Migrated away from CString::ToString() in favor of explicit constructors
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@669 726aef4b-f618-498e-8847-2d620e286838
2006-02-25 09:43:35 +00:00
prozacx a490f62dde Renamed CUserSock to CClient
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@581 726aef4b-f618-498e-8847-2d620e286838
2005-10-15 03:55:09 +00:00
prozacx fb9a062fdb Added module hooks for OnUserJoin() and OnUserPart()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@566 726aef4b-f618-498e-8847-2d620e286838
2005-10-12 02:12:42 +00:00
prozacx 7f82c4b408 Added SetUserSock() for global modules
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@564 726aef4b-f618-498e-8847-2d620e286838
2005-10-11 08:04:53 +00:00
prozacx aaec84a317 Added preliminary support for multiple clients per user
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@547 726aef4b-f618-498e-8847-2d620e286838
2005-10-09 08:40:40 +00:00
prozacx 6d27d1c021 Removed const from args in a bunch of hooks
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@538 726aef4b-f618-498e-8847-2d620e286838
2005-09-26 23:09:05 +00:00
prozacx 49d71a9b55 Removed const from CNick in priv/chan hooks
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@537 726aef4b-f618-498e-8847-2d620e286838
2005-09-26 08:23:30 +00:00
prozacx 8e3c57a144 Added OnBroadcast()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@527 726aef4b-f618-498e-8847-2d620e286838
2005-09-24 04:29:29 +00:00
prozacx 3e35a07303 Added ability to load modules as 'fake' just to act as a placeholder
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@519 726aef4b-f618-498e-8847-2d620e286838
2005-09-22 07:05:21 +00:00
prozacx 82907aa0f2 Got rid of CUser::FindModPath()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@513 726aef4b-f618-498e-8847-2d620e286838
2005-09-20 01:56:32 +00:00
prozacx 89e5079ce9 Upgrading to CZNC::Get()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@508 726aef4b-f618-498e-8847-2d620e286838
2005-09-19 04:09:37 +00:00
prozacx da683da5b0 Added try/catch for LoadModule
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@484 726aef4b-f618-498e-8847-2d620e286838
2005-09-12 03:45:57 +00:00
prozacx 3fbb717511 Added Set/GetArgs() for telling the args a mod was loaded with
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@437 726aef4b-f618-498e-8847-2d620e286838
2005-07-18 01:58:44 +00:00
prozacx f6f438a543 Made some functions const
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@431 726aef4b-f618-498e-8847-2d620e286838
2005-07-11 05:20:01 +00:00
prozacx 7e95256bcb Added Put*() wrappers in CSocket
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@386 726aef4b-f618-498e-8847-2d620e286838
2005-06-13 04:17:35 +00:00
prozacx a019a9b439 Added GetSavePath() for getting the path to save data to
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@382 726aef4b-f618-498e-8847-2d620e286838
2005-06-12 09:00:33 +00:00
prozacx da0846d8a6 Added more columns to ListSockets() table and made CSocket::Connect() respect the ssl flag
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@379 726aef4b-f618-498e-8847-2d620e286838
2005-06-06 03:51:15 +00:00
prozacx c48f13a4a9 Added support for sockets within modules
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@378 726aef4b-f618-498e-8847-2d620e286838
2005-06-01 23:30:15 +00:00
prozacx c52542e469 Moved GetDescription() into second argument of MODULEDEFS()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@366 726aef4b-f618-498e-8847-2d620e286838
2005-05-26 20:42:13 +00:00
prozacx 79606514b0 No longer require g_* prefix for global modules
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@361 726aef4b-f618-498e-8847-2d620e286838
2005-05-26 09:15:15 +00:00
prozacx c041a6e17f Added global module hook OnConfigLine()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@355 726aef4b-f618-498e-8847-2d620e286838
2005-05-24 01:31:37 +00:00
prozacx 0bbab8f472 Added some more global module support
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@349 726aef4b-f618-498e-8847-2d620e286838
2005-05-22 02:03:31 +00:00
prozacx 3dde793e62 Added global module functionality
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@348 726aef4b-f618-498e-8847-2d620e286838
2005-05-22 00:47:36 +00:00
imaginos 2d1602ec4c bring Csocket up to date, includes new needed function GetSockByFD()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@332 726aef4b-f618-498e-8847-2d620e286838
2005-05-18 03:22:52 +00:00
prozacx 1437f279b5 Changed CChan reference to non-const in all hooks
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@330 726aef4b-f618-498e-8847-2d620e286838
2005-05-17 17:18:35 +00:00
prozacx b0f37a817b Moved code for finding module path to CUser::FindModPath()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@319 726aef4b-f618-498e-8847-2d620e286838
2005-05-16 05:39:34 +00:00
prozacx 5750c5e72f Fixed issue where a reference to module name was passed into Unload() and caused UnloadModule() to crash
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@309 726aef4b-f618-498e-8847-2d620e286838
2005-05-15 22:23:45 +00:00
prozacx 44d38ec4c9 Changed return value from bool to EModRet on most hooks
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@306 726aef4b-f618-498e-8847-2d620e286838
2005-05-15 08:27:27 +00:00
imaginos ad9912f569 don't unwittingly insert the value if its not there
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@300 726aef4b-f618-498e-8847-2d620e286838
2005-05-15 04:03:04 +00:00
imaginos 1f4f4aab64 finished building out module/user based registry system (round 1)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@299 726aef4b-f618-498e-8847-2d620e286838
2005-05-15 03:49:11 +00:00
prozacx bb4a189aa8 Added OnChanPermission() hook for when people get opped, voiced, deopped, halfopped, etc
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@280 726aef4b-f618-498e-8847-2d620e286838
2005-05-14 00:21:24 +00:00