Only announce if bc has names
Signed-off-by: Rahix <rahix@rahix.de>
This commit is contained in:
parent
b9c3674755
commit
28a52cfd7d
1 changed files with 8 additions and 5 deletions
13
bc.lua
13
bc.lua
|
|
@ -148,11 +148,14 @@ function BaseControl:finalize(waits, timeout)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Announce own nouns and verbs
|
-- Announce own nouns and verbs
|
||||||
self.network:broadcast{
|
local nouns, verbs = self:nouns(true), self:verbs(true)
|
||||||
ty=Message.Register,
|
if #nouns > 0 or #verbs > 0 then
|
||||||
nouns=self:nouns(true),
|
self.network:broadcast{
|
||||||
verbs=self:verbs(true),
|
ty=Message.Register,
|
||||||
}
|
nouns=nouns,
|
||||||
|
verbs=verbs,
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
if #(waits or {}) ~= 0 then
|
if #(waits or {}) ~= 0 then
|
||||||
-- Wait for requested names
|
-- Wait for requested names
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue