projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added NeonBackup bot
[NeonServV5.git]
/
src
/
modules
/
NeonServ.mod
/
cmd_neonserv_csuspend.c
diff --git
a/src/modules/NeonServ.mod/cmd_neonserv_csuspend.c
b/src/modules/NeonServ.mod/cmd_neonserv_csuspend.c
index c264b6408695096acded44e10bc3ba9c3bf43185..1dad37dd21fc5424399f238ea3a1260a11a90a66 100644
(file)
--- a/
src/modules/NeonServ.mod/cmd_neonserv_csuspend.c
+++ b/
src/modules/NeonServ.mod/cmd_neonserv_csuspend.c
@@
-56,6
+56,12
@@
CMD_BIND(neonserv_cmd_csuspend) {
if(bot) {
putsock(bot, "PART %s :Channel suspended.", channel);
}
if(bot) {
putsock(bot, "PART %s :Channel suspended.", channel);
}
+ if(client->botid == NEONSERV_BOTID) {
+ char setting[128];
+ sprintf(setting, "modules.%s.auto_backup_unregister", get_module_name(module_id));
+ if(get_int_field(setting))
+ module_global_cmd_unregister_neonbackup(channel);
+ }
printf_mysql_query("UPDATE `bot_channels` SET `suspended` = '1' WHERE `id` = '%s'", row[1]);
reply(getTextBot(), user, "NS_CSUSPEND_DONE", channel);
logEvent(event);
printf_mysql_query("UPDATE `bot_channels` SET `suspended` = '1' WHERE `id` = '%s'", row[1]);
reply(getTextBot(), user, "NS_CSUSPEND_DONE", channel);
logEvent(event);