Commit Graph

95 Commits

Author SHA1 Message Date
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
e150bdda33 znc.conf: Only write StatusPrefix in the user section if needed
Thanks to SilverLeo for the patch.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@930 726aef4b-f618-498e-8847-2d620e286838
2008-01-20 16:17:46 +00:00
psychon
5370a54012 Add DenySetVHost patch from Veit Wahlich aka cru
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@925 726aef4b-f618-498e-8847-2d620e286838
2008-01-18 22:18:36 +00:00
psychon
cc20744683 Small cleanup to calling of OnBoot() for user modules
There is no reason to call it indirectly and this should also
decrease the binary size a little.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@919 726aef4b-f618-498e-8847-2d620e286838
2008-01-08 19:48:45 +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
d78369fee0 Main part is: Add disconnect and connect to *status
Other stuff included here:
- Always send the quit message when disconnecting from IRC
- Partly rewrite CConnectUserTimer::RunJob() for some de-uglification


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@874 726aef4b-f618-498e-8847-2d620e286838
2007-11-16 22:37:27 +00:00
psychon
65eb10a30e Make 'CTCPReply = VERSION' in the config cause ZNC to ignore CTCP VERSIONs
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@871 726aef4b-f618-498e-8847-2d620e286838
2007-11-12 21:32:29 +00:00
psychon
a213258c99 Move code for creating CIRCSocks into a CCron and use DynamicSelectLoop
DynamicSelectLoop checks when the next cron runs and sleeps until then (with an
upper and lower border).
To fix the connecting code it needed to be moved into a cron.



git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@860 726aef4b-f618-498e-8847-2d620e286838
2007-11-03 20:04:24 +00:00
psychon
434231f530 Fix a mem leak in ZNC core
CUser::DelChan() didn't actually delete anything, so if you joined much... well


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@856 726aef4b-f618-498e-8847-2d620e286838
2007-10-28 18:11:44 +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
9ab4c3c384 Merge rev 1016 from x-x
'only listen on local IP'


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@822 726aef4b-f618-498e-8847-2d620e286838
2007-08-07 22:48:25 +00:00
psychon
c0e3f3bb03 Add JoinTries config var which sets a limit for channel join tries to avoid
flood issues. This var defaults to 0 which means 'No Limit'.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@811 726aef4b-f618-498e-8847-2d620e286838
2007-07-04 20:15:10 +00:00
psychon
b772e2664e Merged rev 838,888,890,894,899,900,902-904,926,934,963,984-989 from crox's branch:
- Changes to specfile
- define PATH_MAX and RTLD_LOCAL if not defines
- compile fixes
- SetFileName should not set m_iFD
- check for cygwin and do not use -fPIC
- replaced if ... elif with case in configure.in
- handle 437 reply code
- allow disabled channels
- use strerror() in CIRCSock::SockError()
- added GetUser() to CClient and CIRCSock
- added support for traffic accounting
- added names to timers


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@806 726aef4b-f618-498e-8847-2d620e286838
2007-05-17 19:09:17 +00:00
psychon
1fa9187be6 Revs 945-948;952-953:
- add timezone offset if server is in another timezone than the client
- add prependTimestamp
- add version number to configure.in
- write connect delay back into znc.conf


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@801 726aef4b-f618-498e-8847-2d620e286838
2007-05-16 22:29:39 +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
0a62274975 Committing patches from crox/psychon
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@790 726aef4b-f618-498e-8847-2d620e286838
2007-03-12 06:26:54 +00:00
prozacx
70aafdee8f Moved awaynick functionality into modules/awaynick.cpp module
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@775 726aef4b-f618-498e-8847-2d620e286838
2006-09-17 22:57:28 +00:00
prozacx
f8bb245c36 Patched using fix_no_modules_support.patch by psycho
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@768 726aef4b-f618-498e-8847-2d620e286838
2006-09-16 18:26:36 +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
49e98202a2 Don't allow @ and . to make their way from username to nick/altnick/ident
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@704 726aef4b-f618-498e-8847-2d620e286838
2006-03-20 00:26:53 +00:00
prozacx
0dd418181a Added CUser::IsBeingDeleted() to allow for different messaging when a user is being deleted vs detaching or disconnecting
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@703 726aef4b-f618-498e-8847-2d620e286838
2006-03-19 22:44:10 +00:00
prozacx
62a3c0b221 Allow @ and . in valid usernames
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@681 726aef4b-f618-498e-8847-2d620e286838
2006-03-12 10:35:10 +00:00
prozacx
b8c4fc760a Added a timer to ping inactive clients
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@670 726aef4b-f618-498e-8847-2d620e286838
2006-02-26 09:42:13 +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
e03604de6d Better handling of deletion of servers
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@656 726aef4b-f618-498e-8847-2d620e286838
2006-02-14 07:07:30 +00:00
prozacx
0eaf9bdc1e Wrapped TSocketManager into CSockManager
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@650 726aef4b-f618-498e-8847-2d620e286838
2006-02-12 21:00:59 +00:00
prozacx
3d7bf1fce8 Delete the clients and modules before the user
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@649 726aef4b-f618-498e-8847-2d620e286838
2006-02-12 10:09:00 +00:00
prozacx
ca8247058f Added ipv6 support and multiple listen ports
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@641 726aef4b-f618-498e-8847-2d620e286838
2006-02-11 10:06:45 +00:00
prozacx
160f6e7d56 Allow - and _ as valid username chars
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@591 726aef4b-f618-498e-8847-2d620e286838
2005-12-28 17:58:38 +00:00
prozacx
130b85cf35 Renamed CIRCSock::PutServ() to CIRCSock::PutIRC()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@585 726aef4b-f618-498e-8847-2d620e286838
2005-10-15 05:12:18 +00:00
prozacx
3cc202245d Renamed CClient::PutServ() to CClient::PutClient()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@583 726aef4b-f618-498e-8847-2d620e286838
2005-10-15 05:06:26 +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
5e2bd504e4 Notify user when a new client is connecting to their account
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@578 726aef4b-f618-498e-8847-2d620e286838
2005-10-14 20:33:50 +00:00
prozacx
fb103fa96e Fixed problem with CUserSock losing m_pIRCSock when znc jumps IRC servers
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@573 726aef4b-f618-498e-8847-2d620e286838
2005-10-14 17:46:34 +00:00
prozacx
f9afabc23e Respect AwaySuffix by starting timers in Clone()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@569 726aef4b-f618-498e-8847-2d620e286838
2005-10-12 06:57:32 +00:00
prozacx
8ac650bd25 Added an optional pointer to a client sock to skip for Put*() functions
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@563 726aef4b-f618-498e-8847-2d620e286838
2005-10-11 08:04:17 +00:00
prozacx
e3b723de5b Made multiple clients per user a config option
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@556 726aef4b-f618-498e-8847-2d620e286838
2005-10-09 23:19:07 +00:00
prozacx
b5a3cd3727 Fixed AwayNick timer and added BackNick timer
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@553 726aef4b-f618-498e-8847-2d620e286838
2005-10-09 21:47:57 +00:00
prozacx
e80a9f2a81 Fixed reattach problem when nick is in use. This was caused by a migration from UserSocks being moved into CUser
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@552 726aef4b-f618-498e-8847-2d620e286838
2005-10-09 20:22:59 +00:00
prozacx
3df9330e05 Don't add UserSocks every time the irc sock gets connected
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@548 726aef4b-f618-498e-8847-2d620e286838
2005-10-09 18:18:50 +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
ef1c8de55a Added concept of Admin to users
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@526 726aef4b-f618-498e-8847-2d620e286838
2005-09-24 04:29:11 +00:00
prozacx
796a4dd0c3 Write QuitMsg back to config
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@524 726aef4b-f618-498e-8847-2d620e286838
2005-09-22 16:34:18 +00:00
prozacx
a29b4762bf Removed FindModPath()... use CZNC's instead
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@511 726aef4b-f618-498e-8847-2d620e286838
2005-09-20 01:55:36 +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
55b1c1fe5c Don't write chan to config if !InConfig()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@498 726aef4b-f618-498e-8847-2d620e286838
2005-09-16 03:00:13 +00:00
prozacx
d651493351 Changed isClosed() to IsClosed in Csock
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@495 726aef4b-f618-498e-8847-2d620e286838
2005-09-15 04:12:45 +00:00
prozacx
e3de30f19d Added argument support for modules in Clone()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@487 726aef4b-f618-498e-8847-2d620e286838
2005-09-13 06:13:03 +00:00
prozacx
ed602fd6fc Added DenyLoadMod
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@485 726aef4b-f618-498e-8847-2d620e286838
2005-09-12 03:51:37 +00:00