Commit Graph

34 Commits

Author SHA1 Message Date
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
psychon 0470977497 schat: Use CString's features instead of strcasecmp and friends
This also breaks long lines (longest line is now 114 chars, was 180).


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1028 726aef4b-f618-498e-8847-2d620e286838
2008-04-20 12:39:21 +00:00
imaginos 9c88a6aedf bug when trying to track down the right chat session
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@989 726aef4b-f618-498e-8847-2d620e286838
2008-03-18 15:14:23 +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 89e907efaa Remove $Log$ which was used by CVS
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@887 726aef4b-f618-498e-8847-2d620e286838
2007-12-02 09:20:45 +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
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 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 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 32201f7ed3 Added include for znc.h
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@518 726aef4b-f618-498e-8847-2d620e286838
2005-09-20 04:37:28 +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 6249e41c6f Renamed md5.cpp/h to MD5.cpp/h
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@468 726aef4b-f618-498e-8847-2d620e286838
2005-09-07 05:16:01 +00:00
prozacx ab6dc95d16 Added REQUIRESSL
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@461 726aef4b-f618-498e-8847-2d620e286838
2005-09-06 22:43:02 +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 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 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
prozacx fd231e6b3a Moved CUtils::ToString() into CString class
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@249 726aef4b-f618-498e-8847-2d620e286838
2005-05-08 06:42:02 +00:00
prozacx 511832a8d6 Moved CUtils::Trim() into CString class
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@247 726aef4b-f618-498e-8847-2d620e286838
2005-05-08 04:30:14 +00:00
prozacx 24950d24e4 Moved CUtils::Token() into CString class
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@244 726aef4b-f618-498e-8847-2d620e286838
2005-05-07 09:18:56 +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 0ba6b056ec Get CFile from FileUtils.h now
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@236 726aef4b-f618-498e-8847-2d620e286838
2005-05-02 22:36:50 +00:00
imaginos d68cd90e7c fixed int32's that test against npos to string::size_type
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@105 726aef4b-f618-498e-8847-2d620e286838
2005-04-04 06:35:19 +00:00
imaginos 916a3fb713 show this requires ssl
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@90 726aef4b-f618-498e-8847-2d620e286838
2005-04-03 23:03:06 +00:00
prozacx 6c9abd2192 Use GetPemLocation() for the pemfile path
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@84 726aef4b-f618-498e-8847-2d620e286838
2005-04-03 08:19:42 +00:00
prozacx 37641e73ca Renamed BinPath to CurPath
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@79 726aef4b-f618-498e-8847-2d620e286838
2005-04-03 07:48:31 +00:00
imaginos c125e81763 typo on column
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@55 726aef4b-f618-498e-8847-2d620e286838
2005-03-31 20:59:43 +00:00
imaginos 4ba062e19c add ability to show all socks (debugging)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@51 726aef4b-f618-498e-8847-2d620e286838
2005-03-31 20:39:10 +00:00
imaginos 6b94264590 rename files
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@50 726aef4b-f618-498e-8847-2d620e286838
2005-03-30 19:36:24 +00:00