mirror of
https://github.com/anope/anope.git
synced 2026-07-01 13:26:39 +02:00
Added help for sqlsync and fixed installing mydbgen into the wrong directory when using configure
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2802 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+4
-2
@@ -39,8 +39,10 @@ Anope Version 1.9.2
|
||||
NICK_HELP_CMD_RESETPASS
|
||||
NICK_HELP_RESETPASS
|
||||
CHAN_UNBANNED_OTHER
|
||||
MYSQL_SYNC_UPDATING
|
||||
MYSQL_SYNC_UPDATED
|
||||
OPER_HELP_SYNC
|
||||
OPER_HELP_CMD_SQLSYNC
|
||||
OPER_SYNC_UPDATING
|
||||
OPER_SYNC_UPDATED
|
||||
|
||||
*** Mod Strings:
|
||||
CHAN_HELP_SET
|
||||
|
||||
+13
@@ -6653,3 +6653,16 @@ OPER_UMODE_UNSUPPORTED
|
||||
|
||||
OPER_SUPER_ADMIN_NOT_ENABLED
|
||||
SuperAdmin setting not enabled in services.conf
|
||||
|
||||
OPER_HELP_SYNC
|
||||
Syntax: SQLSYNC
|
||||
|
||||
This command syncs your databases with SQL. You should
|
||||
only have to execute this command once, when you initially
|
||||
import your databases into SQL.
|
||||
OPER_HELP_CMD_SQLSYNC
|
||||
SQLSYNC Import your databases to SQL
|
||||
OPER_SYNC_UPDATING
|
||||
Updating MySQL.
|
||||
OPER_SYNC_UPDATED
|
||||
Finished updating MySQL.
|
||||
|
||||
@@ -6644,3 +6644,16 @@ OPER_UMODE_UNSUPPORTED
|
||||
|
||||
OPER_SUPER_ADMIN_NOT_ENABLED
|
||||
SuperAdmin muss in der services.conf eingeschaltet werden.
|
||||
|
||||
OPER_HELP_SYNC
|
||||
Syntax: SQLSYNC
|
||||
|
||||
This command syncs your databases with SQL. You should
|
||||
only have to execute this command once, when you initially
|
||||
import your databases into SQL.
|
||||
OPER_HELP_CMD_SQLSYNC
|
||||
SQLSYNC Import your databases to SQL
|
||||
OPER_SYNC_UPDATING
|
||||
Updating MySQL.
|
||||
OPER_SYNC_UPDATED
|
||||
Finished updating MySQL.
|
||||
|
||||
+10
-2
@@ -6321,7 +6321,15 @@ OPER_UMODE_UNSUPPORTED
|
||||
OPER_SUPER_ADMIN_NOT_ENABLED
|
||||
SuperAdmin setting not enabled in services.conf
|
||||
|
||||
MYSQL_SYNC_UPDATING
|
||||
OPER_HELP_SYNC
|
||||
Syntax: SQLSYNC
|
||||
|
||||
This command syncs your databases with SQL. You should
|
||||
only have to execute this command once, when you initially
|
||||
import your databases into SQL.
|
||||
OPER_HELP_CMD_SQLSYNC
|
||||
SQLSYNC Import your databases to SQL
|
||||
OPER_SYNC_UPDATING
|
||||
Updating MySQL.
|
||||
MYSQL_SYNC_UPDATED
|
||||
OPER_SYNC_UPDATED
|
||||
Finished updating MySQL.
|
||||
|
||||
@@ -6619,3 +6619,15 @@ OPER_UMODE_UNSUPPORTED
|
||||
OPER_SUPER_ADMIN_NOT_ENABLED
|
||||
SuperAdmin setting not enabled in services.conf
|
||||
|
||||
OPER_HELP_SYNC
|
||||
Syntax: SQLSYNC
|
||||
|
||||
This command syncs your databases with SQL. You should
|
||||
only have to execute this command once, when you initially
|
||||
import your databases into SQL.
|
||||
OPER_HELP_CMD_SQLSYNC
|
||||
SQLSYNC Import your databases to SQL
|
||||
OPER_SYNC_UPDATING
|
||||
Updating MySQL.
|
||||
OPER_SYNC_UPDATED
|
||||
Finished updating MySQL.
|
||||
|
||||
@@ -6653,3 +6653,15 @@ OPER_UMODE_UNSUPPORTED
|
||||
OPER_SUPER_ADMIN_NOT_ENABLED
|
||||
L'option Super-Admin n'est pas activée dans le services.conf
|
||||
|
||||
OPER_HELP_SYNC
|
||||
Syntax: SQLSYNC
|
||||
|
||||
This command syncs your databases with SQL. You should
|
||||
only have to execute this command once, when you initially
|
||||
import your databases into SQL.
|
||||
OPER_HELP_CMD_SQLSYNC
|
||||
SQLSYNC Import your databases to SQL
|
||||
OPER_SYNC_UPDATING
|
||||
Updating MySQL.
|
||||
OPER_SYNC_UPDATED
|
||||
Finished updating MySQL.
|
||||
|
||||
@@ -6536,3 +6536,15 @@ OPER_UMODE_UNSUPPORTED
|
||||
OPER_SUPER_ADMIN_NOT_ENABLED
|
||||
SuperAdmin setting not enabled in services.conf
|
||||
|
||||
OPER_HELP_SYNC
|
||||
Syntax: SQLSYNC
|
||||
|
||||
This command syncs your databases with SQL. You should
|
||||
only have to execute this command once, when you initially
|
||||
import your databases into SQL.
|
||||
OPER_HELP_CMD_SQLSYNC
|
||||
SQLSYNC Import your databases to SQL
|
||||
OPER_SYNC_UPDATING
|
||||
Updating MySQL.
|
||||
OPER_SYNC_UPDATED
|
||||
Finished updating MySQL.
|
||||
|
||||
+12
@@ -6429,3 +6429,15 @@ OPER_UMODE_UNSUPPORTED
|
||||
OPER_SUPER_ADMIN_NOT_ENABLED
|
||||
SuperAdmin setting not enabled in services.conf
|
||||
|
||||
OPER_HELP_SYNC
|
||||
Syntax: SQLSYNC
|
||||
|
||||
This command syncs your databases with SQL. You should
|
||||
only have to execute this command once, when you initially
|
||||
import your databases into SQL.
|
||||
OPER_HELP_CMD_SQLSYNC
|
||||
SQLSYNC Import your databases to SQL
|
||||
OPER_SYNC_UPDATING
|
||||
Updating MySQL.
|
||||
OPER_SYNC_UPDATED
|
||||
Finished updating MySQL.
|
||||
|
||||
@@ -6405,3 +6405,15 @@ OPER_UMODE_UNSUPPORTED
|
||||
OPER_SUPER_ADMIN_NOT_ENABLED
|
||||
L'impostazione SuperAdmin non è abilitata in services.conf
|
||||
|
||||
OPER_HELP_SYNC
|
||||
Syntax: SQLSYNC
|
||||
|
||||
This command syncs your databases with SQL. You should
|
||||
only have to execute this command once, when you initially
|
||||
import your databases into SQL.
|
||||
OPER_HELP_CMD_SQLSYNC
|
||||
SQLSYNC Import your databases to SQL
|
||||
OPER_SYNC_UPDATING
|
||||
Updating MySQL.
|
||||
OPER_SYNC_UPDATED
|
||||
Finished updating MySQL.
|
||||
|
||||
@@ -6491,3 +6491,15 @@ OPER_UMODE_UNSUPPORTED
|
||||
OPER_SUPER_ADMIN_NOT_ENABLED
|
||||
SuperAdmin instelling is niet ingeschakeld in services.conf
|
||||
|
||||
OPER_HELP_SYNC
|
||||
Syntax: SQLSYNC
|
||||
|
||||
This command syncs your databases with SQL. You should
|
||||
only have to execute this command once, when you initially
|
||||
import your databases into SQL.
|
||||
OPER_HELP_CMD_SQLSYNC
|
||||
SQLSYNC Import your databases to SQL
|
||||
OPER_SYNC_UPDATING
|
||||
Updating MySQL.
|
||||
OPER_SYNC_UPDATED
|
||||
Finished updating MySQL.
|
||||
|
||||
@@ -7480,3 +7480,15 @@ OPER_UMODE_UNSUPPORTED
|
||||
OPER_SUPER_ADMIN_NOT_ENABLED
|
||||
Opcja SuperAdmin nie jest w³±czona w pliku konfiguracyjnym.
|
||||
|
||||
OPER_HELP_SYNC
|
||||
Syntax: SQLSYNC
|
||||
|
||||
This command syncs your databases with SQL. You should
|
||||
only have to execute this command once, when you initially
|
||||
import your databases into SQL.
|
||||
OPER_HELP_CMD_SQLSYNC
|
||||
SQLSYNC Import your databases to SQL
|
||||
OPER_SYNC_UPDATING
|
||||
Updating MySQL.
|
||||
OPER_SYNC_UPDATED
|
||||
Finished updating MySQL.
|
||||
|
||||
@@ -6337,3 +6337,15 @@ OPER_UMODE_UNSUPPORTED
|
||||
OPER_SUPER_ADMIN_NOT_ENABLED
|
||||
Opção SuperAdmin não habilitada no arquivo services.conf
|
||||
|
||||
OPER_HELP_SYNC
|
||||
Syntax: SQLSYNC
|
||||
|
||||
This command syncs your databases with SQL. You should
|
||||
only have to execute this command once, when you initially
|
||||
import your databases into SQL.
|
||||
OPER_HELP_CMD_SQLSYNC
|
||||
SQLSYNC Import your databases to SQL
|
||||
OPER_SYNC_UPDATING
|
||||
Updating MySQL.
|
||||
OPER_SYNC_UPDATED
|
||||
Finished updating MySQL.
|
||||
|
||||
@@ -6598,3 +6598,16 @@ OPER_UMODE_UNSUPPORTED
|
||||
|
||||
OPER_SUPER_ADMIN_NOT_ENABLED
|
||||
Äèðåêòèâà SuperAdmin îòêëþ÷åíà â êîíôèãóðàöèîííîì ôàéëå ñåðâèñîâ.
|
||||
|
||||
OPER_HELP_SYNC
|
||||
Syntax: SQLSYNC
|
||||
|
||||
This command syncs your databases with SQL. You should
|
||||
only have to execute this command once, when you initially
|
||||
import your databases into SQL.
|
||||
OPER_HELP_CMD_SQLSYNC
|
||||
SQLSYNC Import your databases to SQL
|
||||
OPER_SYNC_UPDATING
|
||||
Updating MySQL.
|
||||
OPER_SYNC_UPDATED
|
||||
Finished updating MySQL.
|
||||
|
||||
@@ -6459,3 +6459,15 @@ OPER_UMODE_UNSUPPORTED
|
||||
OPER_SUPER_ADMIN_NOT_ENABLED
|
||||
SuperAdmin setting not enabled in services.conf
|
||||
|
||||
OPER_HELP_SYNC
|
||||
Syntax: SQLSYNC
|
||||
|
||||
This command syncs your databases with SQL. You should
|
||||
only have to execute this command once, when you initially
|
||||
import your databases into SQL.
|
||||
OPER_HELP_CMD_SQLSYNC
|
||||
SQLSYNC Import your databases to SQL
|
||||
OPER_SYNC_UPDATING
|
||||
Updating MySQL.
|
||||
OPER_SYNC_UPDATED
|
||||
Finished updating MySQL.
|
||||
|
||||
+1
-1
@@ -117,7 +117,7 @@ install: services
|
||||
test -d ${INSTDIR}/data || mkdir ${INSTDIR}/data
|
||||
(cd ../lang ; $(MAKE) install)
|
||||
$(CP) ../data/* $(INSTDIR)/data
|
||||
$(INSTALL) bin/mydbgen $(INSTDIR)/data/mydbgen
|
||||
$(INSTALL) bin/mydbgen $(INSTDIR)/bin/mydbgen
|
||||
test -d $(INSTDIR)/data/backups || mkdir $(INSTDIR)/data/backups
|
||||
test -d $(INSTDIR)/data/logs || mkdir $(INSTDIR)/data/logs
|
||||
@if [ "$(INSTDIR)/data/modules" ] ; then \
|
||||
|
||||
@@ -313,17 +313,23 @@ static void SaveDatabases()
|
||||
class CommandSyncSQL : public Command
|
||||
{
|
||||
public:
|
||||
CommandSyncSQL(const std::string &cname) : Command(cname, 0, 0)
|
||||
CommandSyncSQL(const std::string &cname) : Command(cname, 0, 0, "operserv/sqlsync")
|
||||
{
|
||||
}
|
||||
|
||||
CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms)
|
||||
{
|
||||
notice_lang(Config.s_OperServ, u, MYSQL_SYNC_UPDATING);
|
||||
notice_lang(Config.s_OperServ, u, OPER_SYNC_UPDATING);
|
||||
SaveDatabases();
|
||||
notice_lang(Config.s_OperServ, u, MYSQL_SYNC_UPDATED);
|
||||
notice_lang(Config.s_OperServ, u, OPER_SYNC_UPDATED);
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
bool OnHelp(User *u, const ci::string &subcommand)
|
||||
{
|
||||
notice_help(Config.s_OperServ, u, OPER_HELP_SYNC);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
class DBMySQLWrite : public DBMySQL
|
||||
@@ -334,6 +340,9 @@ class DBMySQLWrite : public DBMySQL
|
||||
ModuleManager::Attach(I_OnServerConnect, this);
|
||||
|
||||
this->AddCommand(OPERSERV, new CommandSyncSQL("SQLSYNC"));
|
||||
|
||||
if (uplink_server)
|
||||
OnServerConnect();
|
||||
}
|
||||
|
||||
~DBMySQLWrite()
|
||||
@@ -355,9 +364,16 @@ class DBMySQLWrite : public DBMySQL
|
||||
I_OnChanForbidden, I_OnDelChan, I_OnChanRegistered, I_OnChanSuspend,
|
||||
/* BotServ */
|
||||
I_OnBotCreate, I_OnBotChange, I_OnBotDelete,
|
||||
I_OnBotAssign, I_OnBotUnAssign
|
||||
I_OnBotAssign, I_OnBotUnAssign,
|
||||
/* OperServ */
|
||||
I_OnOperServHelp
|
||||
};
|
||||
ModuleManager::Attach(i, this, 26);
|
||||
ModuleManager::Attach(i, this, 27);
|
||||
}
|
||||
|
||||
void OnOperServHelp(User *u)
|
||||
{
|
||||
notice_lang(Config.s_OperServ, u, OPER_HELP_CMD_SQLSYNC);
|
||||
}
|
||||
|
||||
EventReturn OnSaveDatabase()
|
||||
|
||||
Reference in New Issue
Block a user