summaryrefslogtreecommitdiff
path: root/src/misc.c
AgeCommit message (Collapse)Author
2009-02-10Move getstring() and getstring2() from macros to functions. This fixes a ↵rburchell
bunch of warnings, and means they are actually *readable*, as well as type-safe and const. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1975 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-09Squashed commit: merge next (1.9.1) back to trunk.rburchell
SVN users, NOTE: THIS WILL NOT BUILD, NOR SHOULD YOU RUN IT YET. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1953 5417fbe8-f217-4b02-8779-1006273d7864
2009-01-03Housekeeping contact address updates.sjaz
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1914 5417fbe8-f217-4b02-8779-1006273d7864
2009-01-02This shouldn't have been changed.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1910 5417fbe8-f217-4b02-8779-1006273d7864
2009-01-02Update copyrights for 2009.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1909 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-17A few GCC 3.4.x and MSVC++ warning fixes.cyberbotx
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1839 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-17More CMake work, mostly to handle both *nix and Windows builds.cyberbotx
Also some tweaks to generation files (like version.sh) to take both input and output files as arguments, to handle CMake when it's used for an out-of-source build. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1836 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-28Remove (void) args, these just make things ugly.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1811 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-26Various fixes for compiling under Windows.cyberbotx
Also updated ms_* modules to use std::vector Memo struct from earlier commit. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1797 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-23Converted many C-style casts to C++-style casts.cyberbotx
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1788 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-22Replaced most uses of smalloc and scalloc with new, replaced most uses of ↵cyberbotx
free with delete. NOTE: This build is unstable due to lack of memory zeroing, this will be addresses in a future commit. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1783 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-16Added module blocks for autoloading non-core modules.cyberbotx
Modified buildStringList to take an std::string and use spacesepstream instead of strtok. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1745 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-14Insane commit of doom: s/ \t/grburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1681 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-09UseTokens needs to die in a fire, don't let it be turned off.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1605 5417fbe8-f217-4b02-8779-1006273d7864
2008-10-05Removed DevNull pseudo-client as well as all *Alias pseudo-clients.Naram Qashat cyberbotx@cyberbotx.com
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1427 5417fbe8-f217-4b02-8779-1006273d7864
2008-10-03Merge commit 'cbx/anopeng-charfix' into anopengRobin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1408 5417fbe8-f217-4b02-8779-1006273d7864
2008-10-01Merge protocol_debug() with the only place it's actually called.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1290 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-30Made all protocol modules able to be compiled via mostly constifying strings.Robin Burchell w00t@inspircd.org
Due to the above, also had to constify strings in many other areas. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1202 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-30Constify a lot of the API. Core now "builds".Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1182 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-30Various g++ fixes.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1178 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-30Merge (with small conflict) from upstream.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1177 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-27BUILD : 1.7.22 (1454) BUGS : NOTES : Applied patch by w00t to fix math bug ↵viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b
in strnrepl(). git-svn-id: svn://svn.anope.org/anope/trunk@1454 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1168 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-03BUILD : 1.7.21 (1426) BUGS : 876 NOTES : We now support CIDR in channel ↵viper viper@31f1291d-b8d6-0310-a050-a5561fc1590b
ban/invite/except lists. Introduces new CIDR capable generic lists system. git-svn-id: svn://svn.anope.org/anope/trunk@1426 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1141 5417fbe8-f217-4b02-8779-1006273d7864
2008-01-26BUILD : 1.7.21 (1364) BUGS : 844 NOTES : Removed broken version checking for ↵geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
windows media center edition and tablet edition; free(Jobe); git-svn-id: svn://svn.anope.org/anope/trunk@1364 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1079 5417fbe8-f217-4b02-8779-1006273d7864
2008-01-13BUILD : 1.7.21 (1345) BUGS : NOTES : Updated copyright information geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: svn://svn.anope.org/anope/trunk@1345 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1060 5417fbe8-f217-4b02-8779-1006273d7864
2008-01-04BUILD : 1.7.20 (1330) BUGS : 815 NOTES : Applied patch by Trystan to ↵geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
properly detect Windows Vista and Windows Server 2008 git-svn-id: svn://svn.anope.org/anope/trunk@1330 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1046 5417fbe8-f217-4b02-8779-1006273d7864
2007-09-02BUILD : 1.7.19 (1300) BUGS : NOTES : Changed 2 // (C++-style) comments in /* ↵geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
(C-style) */ comments in src/misc.s and ran indent on the same file git-svn-id: svn://svn.anope.org/anope/trunk@1300 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1018 5417fbe8-f217-4b02-8779-1006273d7864
2007-08-26BUILD : 1.7.19 (1265) BUGS : NOTES : Updated copyright information geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: svn://svn.anope.org/anope/trunk@1265 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@983 5417fbe8-f217-4b02-8779-1006273d7864
2006-10-17BUILD : 1.7.17 (1185) BUGS : N/A NOTES : Encryption now offers the choice of ↵rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
none, old and md5 - the md5 module is nicely taken from irc-services and actaully works, yes, real md5, in anope, wow eh? git-svn-id: svn://svn.anope.org/anope/trunk@1185 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@905 5417fbe8-f217-4b02-8779-1006273d7864
2006-10-01BUILD : 1.7.15 (1163) BUGS : NOTES : Various small changes to documentation ↵geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
and example config (and removing void \r from sources) git-svn-id: svn://svn.anope.org/anope/trunk@1163 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@885 5417fbe8-f217-4b02-8779-1006273d7864
2006-08-22BUILD : 1.7.15 (1139) BUGS : N/A NOTES : Applied pelxus3 fixs from ThaPrince rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: svn://svn.anope.org/anope/trunk@1139 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@862 5417fbe8-f217-4b02-8779-1006273d7864
2006-07-15# BUILD : 1.7.14 (1089) # BUGS : 549 # NOTES : applied trystan's patch for ↵certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b
the SJOIN issue. git-svn-id: svn://svn.anope.org/anope/trunk@1089 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@813 5417fbe8-f217-4b02-8779-1006273d7864
2006-03-14# BUILD : 1.7.13 (1008) # BUGS : 473 474 # NOTES : gcc switches and win98 ↵certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b
stop, thx 2 trystan git-svn-id: svn://svn.anope.org/anope/trunk@1008 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@733 5417fbe8-f217-4b02-8779-1006273d7864
2006-03-13BUILD : 1.7.13 (1007)# BUGS : 476 # NOTES : Applied Trystan's patch.certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: svn://svn.anope.org/anope/trunk@1007 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@732 5417fbe8-f217-4b02-8779-1006273d7864
2006-02-24Removed redundant int, should make gcc 2 a little happier :)rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: svn://svn.anope.org/anope/trunk@971 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@696 5417fbe8-f217-4b02-8779-1006273d7864
2006-02-13Fixed va_list issue with process_list rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: svn://svn.anope.org/anope/trunk@967 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@692 5417fbe8-f217-4b02-8779-1006273d7864
2006-02-11BUILD : 1.7.13 (965) BUGS : 442 437 432 431 420 NOTES : Fixed a few memleaks. certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: svn://svn.anope.org/anope/trunk@965 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@690 5417fbe8-f217-4b02-8779-1006273d7864
2006-01-26Bug: 425 - export buildStringList for modules to use.rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: svn://svn.anope.org/anope/trunk@960 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@687 5417fbe8-f217-4b02-8779-1006273d7864
2005-05-05BUILD : 1.7.9 (776) BUGS : none NOTES : Prepended all debug messages for ↵dane dane@31f1291d-b8d6-0310-a050-a5561fc1590b
consistency. git-svn-id: svn://svn.anope.org/anope/trunk@776 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@536 5417fbe8-f217-4b02-8779-1006273d7864
2005-05-02BUILD : 1.7.8 (753) BUGS : N/a NOTES : Merged anope-dev with trunk rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: svn://svn.anope.org/anope/trunk@753 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@516 5417fbe8-f217-4b02-8779-1006273d7864
2005-03-28BUILD : 1.7.8 (646) BUGS : 327 329 334 335 NOTES : Fixed quite a few bugs ↵geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
with mode handling (not always removed correctly, added/removed modes were split), fixed a segfault in chan_set_correct_modes, fixed some issues with topic setting, made stripModePrefix really stripping the mode prefix instead of the first char git-svn-id: svn://svn.anope.org/anope/trunk@646 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@494 5417fbe8-f217-4b02-8779-1006273d7864
2005-03-26BUILD : 1.7.8 (643) BUGS : NOTES : Fixed: (1) memleak in nickIsServices ↵geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
[src/misc.c] (2) Fixed language files to reflect r641 (3) Updated nl.l (4) Added event of r642 to docs/EVENTS git-svn-id: svn://svn.anope.org/anope/trunk@643 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@491 5417fbe8-f217-4b02-8779-1006273d7864
2005-03-07BUILD : 1.7.8 (606) BUGS : NOTES : Removed proxy detector code from the ↵geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
core, threads stuff still there. Needs good testing git-svn-id: svn://svn.anope.org/anope/trunk@606 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@454 5417fbe8-f217-4b02-8779-1006273d7864
2005-03-03BUILD : 1.7.8 (594) BUGS : N/A NOTES : Changes strdup to sstrdup - doh! rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: svn://svn.anope.org/anope/trunk@594 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@443 5417fbe8-f217-4b02-8779-1006273d7864
2005-03-03BUILD : 1.7.8 (593) BUGS : 307 NOTES : Fixed admin/owner mode handling rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: svn://svn.anope.org/anope/trunk@593 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@442 5417fbe8-f217-4b02-8779-1006273d7864
2005-02-28BUILD : 1.7.8 (588) BUGS : 304 NOTES : 1. nickIsServices() no longer alters ↵trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b
the buffer 2. Fixes +I on Unreal and Bahamut 3. Anope Feature Request 285 4. Updates documentation 5. Ratbox compiles clean with make strict 6. Trap and storing of NICKCHARS git-svn-id: svn://svn.anope.org/anope/trunk@588 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@438 5417fbe8-f217-4b02-8779-1006273d7864
2005-02-14BUILD : 1.7.8 (574) BUGS : N/A NOTES : Internal Events, Win32 can build with ↵trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b
encryption, nickIsServices() works if format is nick@services git-svn-id: svn://svn.anope.org/anope/trunk@574 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@424 5417fbe8-f217-4b02-8779-1006273d7864
2005-01-27BUILD : 1.7.7 (556) BUGS : N/A NOTES : synced headers so our copyright is ↵trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b
2005, Solid IRCD compiles again, fixed sstrdup() error, updated the documentation a bit, cleaned up ratbox a bit. git-svn-id: svn://svn.anope.org/anope/trunk@556 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@409 5417fbe8-f217-4b02-8779-1006273d7864
2005-01-23BUILD : 1.7.7 (555) BUGS : N/A NOTES : TS6 support, Ratbox support, lots of ↵trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b
little bug fixes, updated documentation git-svn-id: svn://svn.anope.org/anope/trunk@555 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@408 5417fbe8-f217-4b02-8779-1006273d7864
2004-12-25BUILD : 1.7.6 (499) BUGS : NOTES : Fixed several compiler warnings with make ↵geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
strict, removed 2 deprecated config vars. git-svn-id: svn://svn.anope.org/anope/trunk@499 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@353 5417fbe8-f217-4b02-8779-1006273d7864