Merge pull request #1549 from vlegoff/fix_igps
[IGPS] Fix mistakes in the say event
This commit is contained in:
commit
ee6f3f8065
1 changed files with 2 additions and 2 deletions
|
|
@ -430,7 +430,7 @@ class EventCharacter(DefaultCharacter):
|
||||||
|
|
||||||
# Browse all the room's other characters
|
# Browse all the room's other characters
|
||||||
for obj in location.contents:
|
for obj in location.contents:
|
||||||
if obj is self or not inherits_from(obj, "objects.objects.DefaultCharacter"):
|
if obj is self or not inherits_from(obj, "evennia.objects.objects.DefaultCharacter"):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
allow = obj.callbacks.call("can_say", self, obj, message, parameters=message)
|
allow = obj.callbacks.call("can_say", self, obj, message, parameters=message)
|
||||||
|
|
@ -491,7 +491,7 @@ class EventCharacter(DefaultCharacter):
|
||||||
parameters=message)
|
parameters=message)
|
||||||
|
|
||||||
# Call the other characters' "say" event
|
# Call the other characters' "say" event
|
||||||
presents = [obj for obj in location.contents if obj is not self and inherits_from(obj, "objects.objects.DefaultCharacter")]
|
presents = [obj for obj in location.contents if obj is not self and inherits_from(obj, "evennia.objects.objects.DefaultCharacter")]
|
||||||
for present in presents:
|
for present in presents:
|
||||||
present.callbacks.call("say", self, present, message, parameters=message)
|
present.callbacks.call("say", self, present, message, parameters=message)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue