mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
50_SSChatBot: contrib 1.12.0
git-svn-id: https://svn.fhem.de/fhem/trunk@23219 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
43f6417b49
commit
6f60d16df0
@ -91,7 +91,7 @@ BEGIN {
|
||||
CommandAttr
|
||||
CommandDefine
|
||||
CommandGet
|
||||
CommandTrigger
|
||||
CommandTrigger
|
||||
data
|
||||
defs
|
||||
devspec2array
|
||||
@ -1210,12 +1210,14 @@ sub _parseUsers {
|
||||
}
|
||||
|
||||
if(%users) {
|
||||
$hash->{HELPER}{USERS} = \%users;
|
||||
if(!$hash->{HELPER}{USERFETCHED}) {
|
||||
my $event = "CHAT_INITIALIZED";
|
||||
CommandTrigger(undef, "$name $event");
|
||||
}
|
||||
$hash->{HELPER}{USERFETCHED} = 1;
|
||||
$hash->{HELPER}{USERS} = \%users;
|
||||
my $olduf = $hash->{HELPER}{USERFETCHED};
|
||||
$hash->{HELPER}{USERFETCHED} = 1;
|
||||
|
||||
if(!$olduf) {
|
||||
my $event = "CHAT_INITIALIZED";
|
||||
CommandTrigger(undef, "$name $event");
|
||||
}
|
||||
}
|
||||
|
||||
my @newa;
|
||||
@ -1378,7 +1380,7 @@ sub formString {
|
||||
"+" => "%2B",
|
||||
};
|
||||
|
||||
%$replacements = (%$replacements, %$enctourl);
|
||||
%$replacements = (%$replacements, %$enctourl);
|
||||
}
|
||||
else {
|
||||
$replacements = {
|
||||
|
Loading…
Reference in New Issue
Block a user