Tip of the day: Channel mode +f is a powerful anti-flood feature. It is also slightly complex. Enable it in your most important channels, and consider setting a default in set::modes-on-join.

Rehashing the IRCd

From UnrealIRCd documentation wiki
Jump to navigation Jump to search

After making changes to the configuration files (eg unrealircd.conf) or MOTD/RULES files you need to 'rehash' the IRCd. This tells the IRCd to re-read the configuration files and apply all the new settings.

There are a number of ways to do this:

On IRC

If you are an IRCOp on the server then you can just execute the command REHASH. If you are already connected to the server (and IRCOp) then this is by far the easiest method.

You get to see any warnings or errors in the (new) configuration via server notices:

[15:31:28] -irc.test.net- *** Notice -- OperX is rehashing server config file
[15:31:28] -irc.test.net- *** Notice -- Loading IRCd configuration ..
[15:31:28] -irc.test.net- *** Notice -- Configuration loaded without any problems ..

On the shell (*NIX)

On non-Windows you can use the Command Line Interface. Go to the directory you installed UnrealIRCd in, for example cd /home/irc/unrealircd and there you can execute ./unrealircd rehash.

You will see immediately on the screen if the rehash was successful or not (and any warnings/errors).

On Windows

  • You can use the Command Line Interface: open a cmd.exe and cd C:\Program Files\UnrealIRCd 6\bin and then run unrealircdctl rehash. If there are any rehash warnings/errors, you will see them in your screen.
  • Or, when running UnrealIRCd in GUI mode: click on Rehash in the GUI menu, or right-click on the tray icon and select Rehash - All Files
    Be sure to check logs\ircd.log for errors after you rehashed.