summaryrefslogtreecommitdiff
path: root/src/modules
AgeCommit message (Collapse)Author
2009-08-21Partial revert of r2449, my_memo_lang shouldn't have a char * parameter, ↵cyberbotx
const char * works just fine. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2459 5417fbe8-f217-4b02-8779-1006273d7864
2009-08-19Fixed a crash when using commands if HostServ is disabledadam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2453 5417fbe8-f217-4b02-8779-1006273d7864
2009-08-12fixed a crashbug on /hostserv activateDukePyrolator
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2449 5417fbe8-f217-4b02-8779-1006273d7864
2009-07-25Changed params parameter of Command's Execute() from ↵cyberbotx
std::vector<std::string> to std::vector<ci::string>, seems to have no ill effects but may require some testing to be sure. Also a few minor cleanups here and there. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2392 5417fbe8-f217-4b02-8779-1006273d7864
2009-07-24Changed subcommand parameter of Command's OnHelp() from std::string to ↵cyberbotx
ci::string, allows sub-help (like NS SET PASSWORD) to be called without requiring the subcommand to be sent by the user in all caps. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2391 5417fbe8-f217-4b02-8779-1006273d7864
2009-07-21Fixed multiple issues with os_info, including changing the /cs oinfo syntax ↵adam-
to work with the new fantasy system git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2389 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-26Changed module callbacks to use new Timer APIadam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2338 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-23Adds check for using commands on non-registered channels before the adam-
commands are called git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2336 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-11Make stristr() const-safe, replace post-increment on iterators with ↵cyberbotx
pre-increment, remove now unused variables, made my_memo_lang() in hs_request.c const-safe. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2320 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-11Cleanup of internals of new opertype stuff by Adam. Removes OS OPER and OS ↵rburchell
ADMIN, changes OS STAFF to be more helpful in their place. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2319 5417fbe8-f217-4b02-8779-1006273d7864
2009-05-26Typo fixing, spotted by DukePyrolator.cyberbotx
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2304 5417fbe8-f217-4b02-8779-1006273d7864
2009-05-26Make sure the .svn folder is removed when checking src/modules for ↵cyberbotx
subdirectories, spotted by DukePyrolator. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2303 5417fbe8-f217-4b02-8779-1006273d7864
2009-05-25Added ability for CMake to build a module from a subdirectory of src/modules.cyberbotx
Added calculate_libraries() CMake macro to condense library checking in CMakeLists.txt in src/modules. Fixed slight problem with strip_string() macro call in root CMakeLists.txt. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2302 5417fbe8-f217-4b02-8779-1006273d7864
2009-05-05Adds check for opertype permissions to mod_run_cmd() in commands.c, and adds ↵cyberbotx
optional parameter to Command class constructor that takes the opertype permissions for the command. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2292 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-19Fix crash if NS SET <anything> was used without a parameter, spotted and ↵cyberbotx
patched by Adam. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2286 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-16PERMISSION_DENIED -> ACCESS_DENIED string.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2281 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-06Replace Set*Help() functions with virtual *ServHelp() functions that can be ↵cyberbotx
overriden in a module's Module class. Patch from Adam. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2266 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-04Remove is_services_admin() check from cs_enforce to allow build to succeed.cyberbotx
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2261 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-04Removed is_host_setter() and is_host_remover() from code and replaced them ↵cyberbotx
with opertype priv "hostserv/set", removed <hostserv:hostsetters> from configuration. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2260 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-04Remove various uneeded priv checks.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2258 5417fbe8-f217-4b02-8779-1006273d7864
2009-04-03Added service argument to OnPreCommand, added OnPostCommand event, changed ↵cyberbotx
the following modules to use On[Pre|Post]Command instead of hooking into existing commands: hs_request, ns_maxemail, and os_info. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2242 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-29#1058 Patch to fix HS REQUEST memo to include ident. Thanks Adam.sjaz
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2215 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-25Fix problem with CMake under Windows, spotted by therock247uk on the forums, ↵cyberbotx
CMake now checks for the environment variable VCINSTALLDIR (only set in the Visual Studio command prompt) and also fixes the check for #ifndef. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2207 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-24Fix parameters of NS SET within ns_maxemail so it doesn't break ns_set's ↵cyberbotx
version of it. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2204 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-23Partial fix for NS REGISTER not displaying syntax error if only 1 argument ↵cyberbotx
is given, not completely fixed due to how OnSyntaxError is called, problem spotted by DukePyrolator, thanks! git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2200 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-20Partial fix for bug #1038, patch from Adam, NS OINFO and CS OINFO now ↵cyberbotx
properly set a new oinfo line. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2176 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-14Fix bug #1035, patch by Adam, now bans set through CS ENFORCE can be removed ↵cyberbotx
through CS UNBAN or CS CLEAR BANS. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2157 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-11Fix the CMake generation to work with older versions of CMake 2.4.x, ↵cyberbotx
cleaning up some of the macros and also correcting the code to detect what version of CMake is in use. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2155 5417fbe8-f217-4b02-8779-1006273d7864
2009-03-02Added a strip_string function to Anope.cmake, cleaned up other parts of ↵cyberbotx
Anope.cmake, added better find function for #include lines, added functionality for CMake to auto-detect includes in non-standard locations. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2139 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-19Preliminary support for a module source file (within src/modules) to include ↵cyberbotx
a comment saying it requires certain external libraries and having CMake search for the library automatically. Note: This sorta works for both *nix and Windows, probably *nix more-so than Windows, but this needs some cleaning up. It does work as is, though. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2118 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-19Fix ns_update, thanks DP. Fix two compile errors.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2117 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-19Move last of events that are in the core distro over to newevents.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2115 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-18Fix problems with registration being denied, thanks Adam.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2114 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-18Move EVENT_DB_SAVING to newevent.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2108 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-18Move assign and unassign to new events, allow for halting too should modules ↵rburchell
desire that. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2107 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-17Hook events correctly in constructor.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2105 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-16Move EVENT_RELOAD to OnReload.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2103 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-15Removed notice_user() and replaced all calls with Used::SendMessage.cyberbotx
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2078 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-15Remove User::na, use User::nc everywhere. Will probably break everything, ↵rburchell
but opens the door to decoupling NC from NA, and means commands can now be run without bothering about changinc nick :) More tweaking for na/nc usage. It compiles, but it's still a work in progress. Again, this compiles, but I *bet* there's no chance in hell it'll work. :) Slightly better. Set User::nc correctly. Fix crash with unregistered nicks in core and ns_access. Fix glist to work when you're not on that particular nick. Fix ns_set to not crash and burn horribly. Fix ns_set and ns_logout to not do bad things. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2076 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-15Audited all src/modules/* and deleted bs_fantasy_unban (it was obsoleted).cyberbotx
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2051 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-11Fixed compile errors within src/modules/*.cyberbotx
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2001 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-10Fix modules to use the right type (CommandReturn, not CommandResult)rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1977 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-10NS_VERBOTEN -> NS_FORBIDDEN, CS_VERBOTEN -> CS_FORBIDDEN, etc.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1973 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-02-08Fixed Autotools to detect *.cpp files in the src/core and src/modules folders.cyberbotx
Also small fix to the Windows install.js call to CMake to include quotes around the source's path. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1949 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-02Update copyrights for 2009.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1909 5417fbe8-f217-4b02-8779-1006273d7864
2008-12-29Final modifications to Autotools build system to work alongside CMake build ↵cyberbotx
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-29Modifications to the Autotools build system to try to make it work with the ↵cyberbotx
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-29Revived Autotools from the grave, although it'll need some tweaking to work ↵cyberbotx
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