projects
/
docbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1364d76
)
- add per session statistics
author
Andreas Scherbaum
<andreas@scherbaum.biz>
Sun, 22 Jan 2012 00:35:01 +0000
(
01:35
+0100)
committer
Andreas Scherbaum
<andreas@scherbaum.biz>
Sun, 22 Jan 2012 00:35:01 +0000
(
01:35
+0100)
docbot.pl
patch
|
blob
|
blame
|
history
diff --git
a/docbot.pl
b/docbot.pl
index daa6d0b6aa0b5145553591dcc0bd81130c956e19..74f06d6cafad2cd8214e4265793769d85b52af38 100755
(executable)
--- a/
docbot.pl
+++ b/
docbot.pl
@@
-666,6
+666,7
@@
sub init_sessions {
# for the watchdog
stop_session_activity($session);
$main::sessions{$session}{'last_nick_change_attempt'} = time();
+ $main::sessions{$session}{'last_connect_time'} = undef;
}
}
@@
-1392,6
+1393,7
@@
sub on_connect {
$main::sessions{$session}{'past_motd'} = 0;
$main::sessions{$session}{'last_nick_change_attempt'} = time();
+ $main::sessions{$session}{'last_connect_time'} = time();
# get all channels for this session from config
my @channels = config_get_keys1('channels');