projects
/
srvx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fb9d5b8
)
ignore Bots on opserv_staff_alert and send alert via PRIVMSG
author
pk910
<philipp@zoelle1.de>
Sat, 26 Nov 2011 23:51:46 +0000
(
00:51
+0100)
committer
pk910
<philipp@zoelle1.de>
Sat, 26 Nov 2011 23:51:46 +0000
(
00:51
+0100)
src/opserv.c
patch
|
blob
|
history
diff --git
a/src/opserv.c
b/src/opserv.c
index e81b7840c2d821945f44d762df0513b17d480a21..b4aa0d9f6542641ab97176454fd074271922547c 100644
(file)
--- a/
src/opserv.c
+++ b/
src/opserv.c
@@
-4094,6
+4094,8
@@
opserv_staff_alert(struct userNode *user, UNUSED_ARG(struct handle_info *old_han
|| user->uplink->burst
|| !user->handle_info)
return;
|| user->uplink->burst
|| !user->handle_info)
return;
+ else if (IsBot(user))
+ return;
else if (user->handle_info->opserv_level)
type = "OPER";
else if (IsNetworkHelper(user))
else if (user->handle_info->opserv_level)
type = "OPER";
else if (IsNetworkHelper(user))
@@
-4104,9
+4106,9
@@
opserv_staff_alert(struct userNode *user, UNUSED_ARG(struct handle_info *old_han
return;
if (irc_in_addr_is_valid(user->ip))
return;
if (irc_in_addr_is_valid(user->ip))
- send_channel_
notic
e(opserv_conf.staff_auth_channel, opserv, IDENT_FORMAT" authed to %s account %s", IDENT_DATA(user), type, user->handle_info->handle);
+ send_channel_
messag
e(opserv_conf.staff_auth_channel, opserv, IDENT_FORMAT" authed to %s account %s", IDENT_DATA(user), type, user->handle_info->handle);
else
else
- send_channel_
notic
e(opserv_conf.staff_auth_channel, opserv, "%s [%s@%s] authed to %s account %s", user->nick, user->ident, user->hostname, type, user->handle_info->handle);
+ send_channel_
messag
e(opserv_conf.staff_auth_channel, opserv, "%s [%s@%s] authed to %s account %s", user->nick, user->ident, user->hostname, type, user->handle_info->handle);
}
static void
}
static void