mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-22 20:09:43 +01:00
Correct joinwatch for new entries to message history
This commit is contained in:
parent
da7eb0b111
commit
0ce7f52725
@ -172,7 +172,7 @@ sub check_flood {
|
||||
#$self->{pbot}->logger->log("brand new nick addition\n");
|
||||
# new addition
|
||||
${ $self->message_history }{$nick}{$channel}{offenses} = 0;
|
||||
${ $self->message_history }{$nick}{$channel}{join_watch} = 0;
|
||||
${ $self->message_history }{$nick}{$channel}{join_watch} = $mode; # FLOOD_CHAT = 0, FLOOD_JOIN = 1
|
||||
${ $self->message_history }{$nick}{$channel}{messages} = [];
|
||||
${ $self->message_history }{$nick}{hostmask} = "$nick!$user\@$host";
|
||||
push(@{ ${ $self->message_history }{$nick}{$channel}{messages} }, { timestamp => $now, msg => $text, mode => $mode });
|
||||
|
@ -13,7 +13,7 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 155,
|
||||
BUILD_REVISION => 156,
|
||||
BUILD_DATE => "2010-06-10",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user