Commit Graph

54 Commits

Author SHA1 Message Date
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
prozacx
a51dbdeedf Fixed bugs while using --disable-modules
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@254 726aef4b-f618-498e-8847-2d620e286838
2005-05-10 06:42:40 +00:00
prozacx
428baad29e Changed references to strcasecmp over to CString::CaseCmp
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@253 726aef4b-f618-498e-8847-2d620e286838
2005-05-08 10:00:20 +00:00
prozacx
223a660ca1 Moved CUtils::ToString() into CString class
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@248 726aef4b-f618-498e-8847-2d620e286838
2005-05-08 06:24:40 +00:00
prozacx
beb5b49b3f Changed all references to std::string over to CString
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@240 726aef4b-f618-498e-8847-2d620e286838
2005-05-05 18:11:04 +00:00
prozacx
b468129172 Added in code for GetAvailableMods()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@234 726aef4b-f618-498e-8847-2d620e286838
2005-05-02 22:36:08 +00:00
prozacx
8b8ea0b6b9 Added GetAvailableMods() (stubbed for now)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@229 726aef4b-f618-498e-8847-2d620e286838
2005-05-02 06:13:33 +00:00
prozacx
05ba8c3e54 Throw exception on version mismatch
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@190 726aef4b-f618-498e-8847-2d620e286838
2005-04-26 07:15:12 +00:00
prozacx
9b3ac7cb94 Changed vChans to a reference in OnNick and OnQuit (oops)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@165 726aef4b-f618-498e-8847-2d620e286838
2005-04-23 08:10:34 +00:00
prozacx
c88b835837 Changed OnNick() and OnQuit() to take a vector<CChan*> of common channels
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@164 726aef4b-f618-498e-8847-2d620e286838
2005-04-23 07:24:58 +00:00
prozacx
e13e45dc66 Handle modules not being defined in LoadModule() and UnloadModule()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@92 726aef4b-f618-498e-8847-2d620e286838
2005-04-03 23:18:52 +00:00