imaginos
5f0846fc9a
changing data types back to proper notation, and down cast the array passed in
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1158 726aef4b-f618-498e-8847-2d620e286838
2008-08-17 18:46:43 +00:00
imaginos
5fbc0aa538
remove const keywords for perl's sake
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1157 726aef4b-f618-498e-8847-2d620e286838
2008-08-17 18:02:09 +00:00
imaginos
03213ae279
fix arg to PERL_SYS_INIT3
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1156 726aef4b-f618-498e-8847-2d620e286838
2008-08-17 17:48:18 +00:00
imaginos
b3bfb1b9ba
bug fix as reported by http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495076 , still needs to be tested
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1155 726aef4b-f618-498e-8847-2d620e286838
2008-08-17 14:53:18 +00:00
psychon
3106f3b90e
modperl: Fail if modperl.pm can not be loaded
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1147 726aef4b-f618-498e-8847-2d620e286838
2008-07-24 10:16:52 +00:00
psychon
c64d7bc108
Force a space between if, for, while and (
...
This was done via:
sed -ir 's/if(/if (/g; s/for(/for (/g; s/while(/while (/g' \
*.h *.cpp modules/*.cpp
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1030 726aef4b-f618-498e-8847-2d620e286838
2008-04-20 13:08:44 +00:00
psychon
b0a1714b86
Remove useless spaces inside of braces "( stuff )"
...
This was generated via the following command:
cat <file> | \
tr "\n" "€"| \
sed -r 's/€[\t ]*\{€/ {€/g; s/\( */(/g; s/ *\)/)/g' | \
tr "€" "\n"
Thanks to SilverLeo for producing this mess :P
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1029 726aef4b-f618-498e-8847-2d620e286838
2008-04-20 13:00:19 +00:00
imaginos
2578384277
documented how to debug with valgrind
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@988 726aef4b-f618-498e-8847-2d620e286838
2008-03-18 03:00:03 +00:00
imaginos
20a970ae3d
make sure these scalars are declared as mortals as to avoid a memleak
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@987 726aef4b-f618-498e-8847-2d620e286838
2008-03-18 02:30:42 +00:00
imaginos
ed15b68684
possible memleak during onload bu pZNCSpace not being mortal
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@986 726aef4b-f618-498e-8847-2d620e286838
2008-03-17 19:51:58 +00:00
imaginos
8873fbefa1
dont require .pm being in the mod name
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@982 726aef4b-f618-498e-8847-2d620e286838
2008-03-17 14:59:06 +00:00
imaginos
a0b2a8fc2b
changed (un|re)?loadmod to (un|re)?loadperlmodule
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@981 726aef4b-f618-498e-8847-2d620e286838
2008-03-17 04:22:49 +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
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
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
ac805c59a9
Fix warnings from -Woverloaded-virtual.
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@816 726aef4b-f618-498e-8847-2d620e286838
2007-07-19 22:28:54 +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
imaginos
4338d9dda7
changed from char * to const char * argument per perlguts
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@739 726aef4b-f618-498e-8847-2d620e286838
2006-07-09 19:11:28 +00:00
prozacx
810369db4b
Fixed small issue with newest gcc
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@700 726aef4b-f618-498e-8847-2d620e286838
2006-03-17 20:54:16 +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
imaginos
c67c67abe7
missed a spot
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@654 726aef4b-f618-498e-8847-2d620e286838
2006-02-13 06:07:05 +00:00
imaginos
380023e853
use u_short
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@653 726aef4b-f618-498e-8847-2d620e286838
2006-02-13 06:01:57 +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
3ef968b17e
Changed DataPath to SavePath
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@587 726aef4b-f618-498e-8847-2d620e286838
2005-12-27 18:37:48 +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
b9b7844a82
Changed from CUser::GetPemLocation() to CZNC::GetPemLocation()
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@517 726aef4b-f618-498e-8847-2d620e286838
2005-09-20 04:31:19 +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
fb221fb906
wrapped two cerr calls in DEBUG_ONLY()
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@489 726aef4b-f618-498e-8847-2d620e286838
2005-09-13 06:44:21 +00:00
prozacx
602bd53d3e
Got rid of some warnings that were given on a redhat opteron in 64bit
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@471 726aef4b-f618-498e-8847-2d620e286838
2005-09-07 06:56:54 +00:00
imaginos
dbfaa3850a
only if ssl is enabled
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@393 726aef4b-f618-498e-8847-2d620e286838
2005-06-28 07:11:55 +00:00
prozacx
296b535d5f
Commented GetDataPath() as it has been replaced
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@385 726aef4b-f618-498e-8847-2d620e286838
2005-06-12 09:07:43 +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
imaginos
4146d36088
moved modperl back to original convention
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@362 726aef4b-f618-498e-8847-2d620e286838
2005-05-26 16:30:22 +00:00
imaginos
467f1b8f7a
made modperl global
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@351 726aef4b-f618-498e-8847-2d620e286838
2005-05-22 19:41:12 +00:00
imaginos
c3a191d885
be sure to enable readline
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@346 726aef4b-f618-498e-8847-2d620e286838
2005-05-19 00:37:28 +00:00
imaginos
c553407041
fix module reloading, works now
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@343 726aef4b-f618-498e-8847-2d620e286838
2005-05-18 22:59:46 +00:00
imaginos
d31526aecd
grab default pem file
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@340 726aef4b-f618-498e-8847-2d620e286838
2005-05-18 22:18:47 +00:00
imaginos
62e8bc9585
finish out inbound sockets
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@337 726aef4b-f618-498e-8847-2d620e286838
2005-05-18 18:10:53 +00:00
imaginos
0b8b450b29
add an oopish model to sockets as well
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@335 726aef4b-f618-498e-8847-2d620e286838
2005-05-18 09:15:33 +00:00
imaginos
2184811b0d
tested outbound connections, looks good so far
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@334 726aef4b-f618-498e-8847-2d620e286838
2005-05-18 07:12:18 +00:00
imaginos
aae356d498
implement sockets, thus far untested
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@333 726aef4b-f618-498e-8847-2d620e286838
2005-05-18 06:12:41 +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
imaginos
f8dc1a112a
pave the road for socket support, add in some ease of use functions and generally cleanup code
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@331 726aef4b-f618-498e-8847-2d620e286838
2005-05-17 18:53:38 +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
imaginos
2b2822ba2a
created CORE syntax and subsequent xs versions of modlod, etc
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@329 726aef4b-f618-498e-8847-2d620e286838
2005-05-17 07:53:55 +00:00
imaginos
51440b4b7c
finish off module timers
...
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@327 726aef4b-f618-498e-8847-2d620e286838
2005-05-17 04:58:53 +00:00