[Unreal-users] ircd.conf editing
Status: Beta
Brought to you by:
wildchild
From: Justin H. <fi...@dy...> - 2000-03-01 06:36:06
|
here is a Patch for Unreal3.0-Morrigan(fix) that I made today Basically, it allows Administrators to Edit the ircd.conf file from irc directly this is a proof of Concept, I wanted to see how hard it would be to do, it turned out to be easier than I thought, and hence, here it is :-) Feedback is welcome and wanted :) basic Sumary: /svseconf 1 - Dumps the Current Config to the user via NOTICE /svseconf 2 U:stats.dynam.ac:*:* U:stats-c.dynam.ac:*:* - Finds U:stats.dynam.ac:*:* and will replace it with the Second Command (See below for how to deal with Spaces) /svseconf 3 U:stats.dynam.ac:*:* - Finds U:stats.dynam.ac:*:* and Comments it out /svseconf 4 U:stats-c.dynam.ac:*:* If you want to specify a Line that contains Spaces, use "_" in place of the space, eg: Q:Reserved_for_Admin:*admin* would actually search for Q:Reserved for admin:*admin* you still have to rehash the server to re-read the config Preserves the Layout of the Config file, so it doesn't get all messed up. your comments stay there, and stay in place What I'm not happy about at the moment: when its replacing, or rem'ing out comments, it makes a temp file in /tmp/ called ircd.conf I unlink it in the code after I have copied it back to the real ircd.conf (set by CPATH) but I still don't like this idea, someone could read it, and thus get your O lines... What I have planned: Make it only work from U: Lined Servers across the network, so that for instance, services can write Config lines to all IRCD's on a network, and thus, central Management.... :) Roll back the original Config file if you stuff up? let me know what ya all think Fish |