projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add more information when deleting a user; added zombie channel search
[NeonServV5.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index 1292a82c7c627c68e6241e80e3dab80fcaf18774..f3afaaf8a18c97a9bfd50a452eac5c2bd2a9feb5 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-437,10
+437,16
@@
static AUTHLOOKUP_CALLBACK(main_checkauths_callback) {
deleteUser(atoi(row[0]));
char *alertchan = get_string_field("General.CheckAuths.alertchan");
if(alertchan) {
deleteUser(atoi(row[0]));
char *alertchan = get_string_field("General.CheckAuths.alertchan");
if(alertchan) {
+ char reason[MAXLEN];
+ if(!exists) {
+ strcpy(reason, "USER_NOT_EXISTS");
+ } else {
+ sprintf(reason, "USER_REGISTERED_MISSMATCH: %lu, expected %d (diff: %d)", (unsigned long) registered, atoi(row[1]), diff);
+ }
struct ChanNode *alertchan_chan = getChanByName(alertchan);
struct ClientSocket *alertclient;
if(alertchan_chan && (alertclient = getChannelBot(alertchan_chan, 0)) != NULL) {
struct ChanNode *alertchan_chan = getChanByName(alertchan);
struct ClientSocket *alertclient;
if(alertchan_chan && (alertclient = getChannelBot(alertchan_chan, 0)) != NULL) {
- putsock(alertclient, "PRIVMSG %s :Deleted User %s
", alertchan_chan->name, auth
);
+ putsock(alertclient, "PRIVMSG %s :Deleted User %s
(%s)", alertchan_chan->name, auth, reason
);
}
}
} else if(exists && !strcmp(row[1], "0")) {
}
}
} else if(exists && !strcmp(row[1], "0")) {