Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Module db backup  (Read 6155 times)

0 Members and 1 Guest are viewing this topic.

Trystan Scott Lee

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 343
Module db backup
« on: August 17, 2006, 04:51:30 AM »

Currently it is a pain for module coders to backup their db's they have to catch the event and then do alot of code to get there. I have come up with a patch to make it easier see..

http://www.nomadinc.net/tempdir/moduledb.diff

int db_backevent(int ac, char **av)
{
  if (!stricmp(av[0], EVENT_STOP)) {
      ModuleDatabaseBackup(moddbname);
  }
}
Logged
my God my tourniquet, return to me salvation

Tom65789

  • Anope User
  • Offline Offline
  • Posts: 343
    • www.t65789.co.uk
(No subject)
« Reply #1 on: August 17, 2006, 11:28:48 AM »

thanks Trystan, i already found a use for it in a module im working on and it really does help.
Pages: [1]   Go Up