Commit Graph

  • 0a4e4a10a6 Use the new CString constructor in various places to make them more readable psychon 2008-10-10 17:58:36 +00:00
  • 88a993a63a Add recognition for 'y' and 'n' to CUtils::GetBoolInput. Only 'yes'/'no' was possible before. This commit also fixes a possible stack overflow because of recursion. kroimon 2008-10-10 15:45:20 +00:00
  • f6efc88868 Add some new constructors to CString psychon 2008-10-09 17:11:06 +00:00
  • 47099a9d88 perform: Clean up the style a little and make this look like the rest of znc psychon 2008-10-08 16:04:08 +00:00
  • 2573b6408e Mark some global vars as const and static and some static local vars as const psychon 2008-10-07 13:45:34 +00:00
  • 92a718e3a6 Use CSocket in webadmin instead of directly using Csock psychon 2008-10-04 20:55:50 +00:00
  • 4aa01bcb71 Fix modperl to properly compile with perl 5.10.0 psychon 2008-10-03 18:07:22 +00:00
  • f81177b102 Fix stickychan to work with disabled channels (e.g. after a kick) psychon 2008-10-03 12:53:39 +00:00
  • 497697dd3b Fix a crash bug when modperl was loaded on some arches psychon 2008-10-02 16:26:09 +00:00
  • 92bb399253 Fix cached perms when a chan is left psychon 2008-10-02 15:21:06 +00:00
  • 02e4d35085 Clean up modules/Makefile.in for modperl psychon 2008-09-30 18:07:25 +00:00
  • 5237a24747 Use CString::Equals() everywhere. kroimon 2008-09-30 15:15:59 +00:00
  • 18ce52e32d Limit the maximal read buffer space that is used for every socket psychon 2008-09-30 14:43:51 +00:00
  • f40b3e78d7 Added CString::Equals() This new function can be used to replace the old (CaseCmp() == 0) statements. kroimon 2008-09-30 12:58:34 +00:00
  • 195681d7d7 Added length argument to CString::StrCmp() like in CString::CaseCmp() kroimon 2008-09-30 12:57:10 +00:00
  • 273d72c605 Add a Clear() function to CTable and make the base class protected psychon 2008-09-29 14:46:06 +00:00
  • 3014ae5dcb Remove CSocket::m_sLabel since it isn't really used at all psychon 2008-09-29 13:34:42 +00:00
  • 051e1f81d8 Enhanced the /znc command to optionally accept commands. kroimon 2008-09-29 13:33:15 +00:00
  • 8c2fc5180e Removed redundant checks for m_pUser in CClient::UserCommand() One check in line 19 should be enough. See also rev 1220. kroimon 2008-09-28 19:46:12 +00:00
  • b757a318f1 Introduced CString::TrimPrefix() and CString::CaseCmp() for parsing targets. Dropped all occurences of strncasecmp() and simplified the detection of messages targeting modules. kroimon 2008-09-28 19:30:20 +00:00
  • 583b91f719 Update to latest Csocket psychon 2008-09-28 17:17:46 +00:00
  • e693acaa66 Added CString::TrimPrefix() and CString::TrimSuffix() These functions remove prefix/suffix strings if possible. kroimon 2008-09-28 16:59:28 +00:00
  • 038961359e Print warnings in CTable if you feed it with unknown columns psychon 2008-09-28 16:55:27 +00:00
  • fd92e65b70 Add CClient::PutStatus(const CTable&) and use it everywhere psychon 2008-09-28 12:05:49 +00:00
  • d6c34d2441 Fixed the CALLMOD macro in Client.cpp Simple copy&paste error kroimon 2008-09-28 11:53:30 +00:00
  • cc00aa23c2 Removed thousands of redundant checks for m_pUser in CClient::ReadLine(). We already checked for it on line 144 which should be enough. kroimon 2008-09-28 01:03:06 +00:00
  • 3b8134c3b0 Another whitespace/tab mixup fix. Hopefully the last one... Again, no functional changes in this commit. kroimon 2008-09-27 14:42:34 +00:00
  • 1eaac2835b Renamed UseHiddenHost to UseCloakedHost to ensure consistency. Thanks to fred for noticing this. kroimon 2008-09-27 12:24:01 +00:00
  • 946add25c2 Added the Q module which allows the user to auth with QuakeNet's Q bot. kroimon 2008-09-27 09:52:00 +00:00
  • c5ce187e0f Added descriptive lines to the LISTMODS and LISTAVAILMODS commands. Also did a few minor style changes. kroimon 2008-09-26 12:52:07 +00:00
  • 6766b32e1b Fixed some trailing whitespace / tab mixups and adjusted MD5.cpp to our coding guidelines. This commit includes absolutely no changes in functionality, only pure cleanup. kroimon 2008-09-26 12:51:36 +00:00
  • 83dc2d9bd3 Set the client's nick name to our IRC nick when it connects to ZNC psychon 2008-09-21 12:54:10 +00:00
  • 0e403e318e Small optimization to starting the connect user timer psychon 2008-09-21 12:51:43 +00:00
  • 9e68cd3558 Fix compilation with gcc 4.3.1 is ssl is disabled psychon 2008-09-21 08:02:15 +00:00
  • f1e6a41d83 Ignore messages to ourself when being disconnected from IRC. This suppresses "Your message to [yournick] got lost,..." messages when lagbars try to send notices to their own nick but ZNC is disconnected from IRC. kroimon 2008-09-20 16:00:26 +00:00
  • 120c1cedf2 Import the dark-clouds webadmin skin bigpresh made. Thanks :) psychon 2008-09-19 17:24:38 +00:00
  • cad1ee5367 Keepnick: Dont forward nick change errors which we generated ourselves psychon 2008-09-18 19:58:53 +00:00
  • d4cd83fdf3 autoconf and m4 both suck (autoconf choked on some comma and messed up badly after that) psychon 2008-09-18 18:16:49 +00:00
  • 3866bdd9f7 Revert rev 1204 psychon 2008-09-18 17:52:10 +00:00
  • 29dab181df Add --disable-optimization flag to configure to remove -O2 psychon 2008-09-16 13:33:19 +00:00
  • debe3ec335 Makefile: Make all output files depend on the Makefile itself psychon 2008-09-14 17:57:15 +00:00
  • 69a429bca0 Reorder some openssl library checks in configure psychon 2008-09-14 14:07:14 +00:00
  • 258793168b Bugfix in keepnick: PutUser() vs PutModule() screwup psychon 2008-09-14 06:05:23 +00:00
  • 57f4288c00 Renamed String.h and String.cpp to ZNCString.h and ZNCString.cpp and updated all references to these files. kroimon 2008-09-13 16:38:41 +00:00
  • 613c87a46e Increase the version number to 0.061 psychon 2008-09-13 15:46:29 +00:00
  • 8ab24030bc Increase the version number to 0.060 znc-0.060 psychon 2008-09-13 15:41:25 +00:00
  • 87a368cb64 Improve both, the code's and the debug output's easy-to-readyiness psychon 2008-09-12 15:41:12 +00:00
  • 6ded64a177 Print a message when SIGHUP is caught psychon 2008-09-12 15:35:46 +00:00
  • 92fb0ac62f Small cleanup, removed two unused variables psychon 2008-09-12 12:55:03 +00:00
  • b14156a5db partyline: Adjusted the hostmask for actions from rottenboy.com to znc.in to ensure uniformity to the rest of znc. See also commit 1181. kroimon 2008-09-10 14:24:07 +00:00
  • 83ff385000 Fix '/msg *status disconnect' to *really* disconnect from IRC psychon 2008-09-09 15:54:34 +00:00
  • 85845556cd Make ./configure --help output look a little better psychon 2008-09-07 16:25:11 +00:00
  • fa57b9eb54 Added module 'autocycle' to replace the old core's functionality. Credits to both psychon and kroimon kroimon 2008-09-07 11:50:43 +00:00
  • d1b3c2b94d Removed AutoCycle from core kroimon 2008-09-07 11:23:57 +00:00
  • df27598832 chansaver: Save channel keys (+k) again, core doesn't do it anymore on its own psychon 2008-09-05 19:46:43 +00:00
  • 219ae6a572 Add new module call OnMode() psychon 2008-09-04 10:28:19 +00:00
  • 57bdb554a9 I was told this is confusing, so let's clean this up (/me waves at eTeen) psychon 2008-09-03 16:24:08 +00:00
  • 85a70a418c Add JoinTries and MaxJoins config options to webadmin psychon 2008-09-03 14:28:18 +00:00
  • fe44108d90 Fix some channel key-related mess ups. psychon 2008-09-02 17:25:37 +00:00
  • 0316c6a1df Add OnUserTopicRequest() for topic requests psychon 2008-09-02 12:39:18 +00:00
  • 41fce82fc8 Added myself ;) kroimon 2008-08-31 18:01:44 +00:00
  • 00fcf767a7 Keep the traffic stats more up-to-date (/msg *status traffic) psychon 2008-08-31 07:21:21 +00:00
  • 5fa8d03d2b Handle clients in CModules the same way users are psychon 2008-08-30 19:46:28 +00:00
  • 02beef2e07 Use znc.in instead of znc.com psychon 2008-08-30 09:00:21 +00:00
  • 687d7ae894 Close listening ports if we have too many open fds psychon 2008-08-30 08:35:11 +00:00
  • 69f44c35a0 Update to latest Csocket psychon 2008-08-29 18:59:05 +00:00
  • d4cd78a43b Instead of (ab)using a CClient for listening, use an own class this job psychon 2008-08-29 18:51:08 +00:00
  • da8c892d4f Add a config option 'MaxJoins' to limit the number of joins ZNC does at once psychon 2008-08-29 15:06:08 +00:00
  • 5c588352d9 WriteToDisk() didn't make sure the file was empty when its map was empty psychon 2008-08-28 18:50:42 +00:00
  • 55c1232e5e Add a 'ShowMOTD' command to *status and reorder 'HELP' output psychon 2008-08-28 10:47:01 +00:00
  • 3325f450c7 Add '/msg *status restart' psychon 2008-08-27 14:44:04 +00:00
  • cc5c771699 Some changes to CZNC::WriteNewConfig (znc --makeconf) psychon 2008-08-26 13:54:17 +00:00
  • 7c45658993 Add some proper cleanup to some places in main() psychon 2008-08-25 14:46:22 +00:00
  • 971aa39e10 Don't start a new process for starting znc after --makeconf psychon 2008-08-25 14:42:11 +00:00
  • 840d1ba15a Move some code around psychon 2008-08-25 14:39:06 +00:00
  • adcca250e1 Use the new CModule::PutModule(const CTable&) in various modules psychon 2008-08-24 12:51:04 +00:00
  • b70a115a28 Add a new function CModule::PutModule(const CTable&) psychon 2008-08-24 12:49:40 +00:00
  • 09a122ef92 Move some common code in main() in front of all those if()s psychon 2008-08-24 10:41:01 +00:00
  • 87d062a5c5 Unify some of the preprocessor macros in Modules.cpp psychon 2008-08-24 06:25:11 +00:00
  • 074adc94c1 Don't check if perl is enabled in modperl psychon 2008-08-24 06:19:14 +00:00
  • b0903c0208 Handle a theoretically possible 'throw UNLOAD' in CModule::OnLoad() psychon 2008-08-23 20:20:36 +00:00
  • c0c563de55 Fix FTBFS with CTable on g++ 3 psychon 2008-08-23 13:24:28 +00:00
  • ecabbd2bcd Fix some of the direct module calls in Client.cpp psychon 2008-08-22 12:48:56 +00:00
  • ef31d6e239 Connect and reconnect faster to IRC psychon 2008-08-21 10:47:09 +00:00
  • ec58e6f183 Some cleanup and optimizations to CTable psychon 2008-08-20 08:13:23 +00:00
  • c3b6a4b29a Update to latest Csocket psychon 2008-08-18 11:10:27 +00:00
  • 5f0846fc9a changing data types back to proper notation, and down cast the array passed in imaginos 2008-08-17 18:46:43 +00:00
  • 5fbc0aa538 remove const keywords for perl's sake imaginos 2008-08-17 18:02:09 +00:00
  • 03213ae279 fix arg to PERL_SYS_INIT3 imaginos 2008-08-17 17:48:18 +00:00
  • b3bfb1b9ba bug fix as reported by http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=495076, still needs to be tested imaginos 2008-08-17 14:53:18 +00:00
  • 2f74755d7a Fix a bug where ZNC always thought all channels where empty psychon 2008-07-24 18:49:52 +00:00
  • 8fa9122cdb Fix the keepnick module psychon 2008-07-24 11:54:26 +00:00
  • 5d58910d24 Add a new module that implements KeepNick psychon 2008-07-24 11:36:30 +00:00
  • 03e34ac6e6 Remove KeepNick psychon 2008-07-24 11:34:11 +00:00
  • 3ec3f07523 Move CClient's UserCommand() and HelpUser() into a new file ClientCommand.cpp psychon 2008-07-24 10:38:24 +00:00
  • 30404699e3 Handle the on-connect 433 in an own function psychon 2008-07-24 10:34:15 +00:00
  • cd2fb1b1b5 Move the forwarding of raw 353 into an own function psychon 2008-07-24 10:22:17 +00:00
  • 3106f3b90e modperl: Fail if modperl.pm can not be loaded psychon 2008-07-24 10:16:52 +00:00
  • 13dd3996d5 Remove some unused arguments and unimplemented functions psychon 2008-07-24 10:14:41 +00:00
  • 48d53876d6 Even more weird and broken clients sending even more and broken stuff psychon 2008-07-23 15:05:35 +00:00