rburchell
f4cdea8348
Revert oper protection patch from SciFi, it breaks things. This reverts commit fee057ae11daea45295744f0e9e13f1d0ce0f2b4.
...
Conflicts:
TODO
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2004 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-11 00:20:17 +00:00
cyberbotx
e2f6064f10
Fixed compile errors in os_szline.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1998 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-10 23:49:24 +00:00
cyberbotx
f9e7760a23
Fixed compile errors in os_shutdown and os_sqline.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1995 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-10 23:27:00 +00:00
cyberbotx
53e79c2155
Fixed compile errors in os_sgline.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1994 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-10 23:17:46 +00:00
rburchell
7d58ed17c7
Fix os_news and os_noop.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1989 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-10 21:37:52 +00:00
rburchell
b1ee732713
Few fixes.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1987 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-10 21:16:00 +00:00
robbeh
3d8245a5a6
fixed typo in ns_saset.c dealt with constness for change_core_display and added ASTYLE to contain astyle options
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1984 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-10 20:47:53 +00:00
rburchell
b48c18b011
Fixes..
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1981 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-10 17:01:21 +00:00
cyberbotx
b496e60eb0
Fix compile errors in hs_* modules, as well as add some const-safeness to HostServ functions.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1980 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-10 16:56:24 +00:00
rburchell
b15c46d795
Move getstring() and getstring2() from macros to functions. This fixes a 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-10 13:54:09 +00:00
rburchell
1fd0249076
NS_VERBOTEN -> NS_FORBIDDEN, CS_VERBOTEN -> CS_FORBIDDEN, etc.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1973 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-10 12:26:09 +00:00
robbeh
24dbf4e00c
Use a virtual destructor for Commands as it has virtual functions
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1969 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-10 09:17:34 +00:00
rburchell
e7228b6289
Remove gone do_backtrace() prototype and call from memory.c
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1957 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-09 21:35:04 +00:00
rburchell
d7d01bdc5c
Squashed commit: merge next (1.9.1) back to trunk.
...
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-02-09 21:01:05 +00:00
rburchell
a0925f2d4c
Add the capability to (properly) send login/logout account messages, used for InspIRCd at present, others are possible in the future (ircu etc). NOTE: This currently doesn't trigger on DROP, which is probably a bad thing.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1944 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-07 21:58:27 +00:00
rburchell
7439706b3b
Fix a signed vs unsigned warning (this also means Anope will correctly function on networks bigger than the positive size of signed int, but who's counting?)
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1927 5417fbe8-f217-4b02-8779-1006273d7864
2009-01-23 08:16:28 +00:00
cyberbotx
f7088139a0
Fix bug 993, Anope was crashing on /os reload, no longer crashes.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1920 5417fbe8-f217-4b02-8779-1006273d7864
2009-01-12 18:25:28 +00:00
sjaz
73bd4f99ca
Housekeeping contact address updates.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1914 5417fbe8-f217-4b02-8779-1006273d7864
2009-01-03 17:06:39 +00:00
rburchell
fba6ec736d
Update copyrights for 2009.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1909 5417fbe8-f217-4b02-8779-1006273d7864
2009-01-02 18:20:35 +00:00
cyberbotx
c16600fee5
Removed check for HAVE_VA_LIST_AS_ARRAY, it broke MemoServ.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1893 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-31 02:05:50 +00:00
cyberbotx
7d9865150a
Edits to CPack-related part of CMake to not include Autotools-built files from a dirty source tree.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1884 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-29 22:04:53 +00:00
cyberbotx
110dbb673e
Final modifications to Autotools build system to work alongside CMake build system. CMake build system will only allow out-of-source building now. Removed all old NMake Makefiles for Windows to focus on use of CMake on Windows (it's not as important to require the old system on Windows like it is on *nix).
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1878 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-29 20:08:13 +00:00
cyberbotx
bd2cb095aa
Modifications to the Autotools build system to try to make it work with the changes made from CMake, still untested (again, don't use this commit).
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1877 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-29 20:07:55 +00:00
cyberbotx
d6bb55476c
Revived Autotools from the grave, although it'll need some tweaking to work alongside CMake now. (In other words, don't use this commit, I committed this so I don't have to re-add these files again if I screw something up.)
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1876 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-29 20:07:38 +00:00
cyberbotx
e0c10d684e
Reverting my last 2 commits in an attempt to fix my own screwball mistake.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1873 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-29 09:02:03 +00:00
cyberbotx
432edbf68f
Merge branch 'cmake'
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1871 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-29 06:57:30 +00:00
cyberbotx
e802b6dfe8
Some more Windows fixes, both in CMake and in the code itself. (I don't like the const casting for the latter, but it's only until we get rid of use of strchr)
...
Added CPack setup to automate generation of source package for *nix and NSIS installer for Windows.
Some other minor CMake fixes.
Converted docs/README and docs/WIN32.txt from Unix linefeeds to DOS linefeeds so they show up right in Notepad under Windows.
Added small fix for Visual Studio 2008, CMake doesn't detect the Express version correctly and it must be explicitly defined.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1861 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-23 07:38:22 +00:00
cyberbotx
51353104ee
Updated the CMakeLists.txt files to function under CMake 2.4.x (earliest version to work is 2.4.4 now).
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1848 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-19 02:25:31 +00:00
cyberbotx
ca4db9f235
Removed the old autotools files that are no longer needed because of the use of CMake.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1842 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-17 20:19:13 +00:00
cyberbotx
81b7aa6571
Massive cleanup of the CMakeLists.txt files to finalize them.
...
Edited configuration scripts for *nix and Windows to use CMake as well as support both in-source and out-of-source builds.
Changed directory structure for *nix to match Windows to remove some conditionals in both CMake and Anope itself.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1841 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-17 20:18:40 +00:00
cyberbotx
fd45a3ad42
Implemented dependency calculation within CMake, now header file dependencies are no longer hardcoded.
...
Also a few minor changes to the CMakeLists.txt files.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1840 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-17 20:18:11 +00:00
cyberbotx
ad7b5bdd30
A few GCC 3.4.x and MSVC++ warning fixes.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1839 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-17 20:17:52 +00:00
cyberbotx
2d72446860
More CMake work, mostly to handle both *nix and Windows builds.
...
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-12-17 20:16:55 +00:00
cyberbotx
1cd73b4dad
Implemented CMake build system to replace the old autoconf-based build system.
...
(Note: Although each Makefile was changed, they will be removed later as CMake reconstructs them.)
Also fixed generation of language files and version.h to not rely on the current directory they are in.
Edited Config to send parameters to cmake, but it is no longer a requirement.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1835 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-17 20:16:25 +00:00
cyberbotx
b779e4d3bb
Removed Service class, if we need something like it later we can add it back, but for now it's just an extra class without a purpose.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1822 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-30 16:25:26 +00:00
cyberbotx
7f555f08e7
Modified BotInfo to store a pointer to a command hash table (this is so modules like ss_main can store their own commands but still have them called by the core).
...
Updated the current sample of ss_main to utilize BotInfo instead of Service (which might be removed) as well as accept a HELP command.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1819 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-30 05:50:25 +00:00
cyberbotx
68deba3296
Renamed Services to Service, keeping it more in line with the naming of other classes in the core.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1815 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-29 00:34:19 +00:00
cyberbotx
3e9413c835
Added start of Services class to be used by new and existing pseudo-clients.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1814 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-29 00:34:13 +00:00
rburchell
be278d2bb8
Remove (void) args, these just make things ugly.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1811 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-28 16:16:53 +00:00
cyberbotx
000b8b3423
Removed mod_current_module, again, so far, no ill-effects...
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1809 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-28 06:32:45 +00:00
cyberbotx
bdc13b4d6d
Removed mod_current_user and mod_current_op, the latter of which was only an extern.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1807 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-28 06:00:47 +00:00
cyberbotx
b2f1f14320
Remove a few prototypes to module-related functions that were moved to the Module class.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1805 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-28 03:16:25 +00:00
cyberbotx
7fdd8d7872
Moved moduleSet*Help() functions to Module::Set*Help().
...
Also corrected a few issues with tabs in the help lines for non-core modules caused from the space->tab conversion a while back.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1804 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-28 03:05:31 +00:00
cyberbotx
bac9e520ed
Moved moduleNoticeLang() to Module::NoticeLang().
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1803 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-28 01:04:57 +00:00
cyberbotx
c0c73e4abd
Moved moduleGetLangString() to Module::GetLangString().
...
Also changed modules_unload_all() to not delete a module directly, but instead call ModuleManager::UnloadModule().
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1801 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-27 05:35:34 +00:00
cyberbotx
3964ead17e
Moved moduleDeleteLanguage() to Module::DeleteLanguage().
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1800 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-27 03:13:27 +00:00
cyberbotx
2e41f43ace
A few more Win32 fixes, Anope 1.9 compiles and runs under Windows now.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1799 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-26 22:13:01 +00:00
cyberbotx
c5b9eaeda0
Various fixes for compiling under Windows.
...
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-26 01:41:39 +00:00
cyberbotx
55b6e0438d
Used std::vector for MemoInfo's memos variable instead of an malloc'd array.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1795 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-25 21:22:10 +00:00
cyberbotx
8431ac369b
Converted many C-style casts to C++-style casts.
...
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1788 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-23 19:12:20 +00:00