diff options
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp index 4d682ab8..53bcf7d3 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -1229,7 +1229,8 @@ void Being::talkTo() void Being::event(Channels channel, const Mana::Event &event) { if (channel == CHANNEL_CHAT && - (event.getName() == EVENT_BEING || event.getName() == EVENT_PLAYER) && + (event.getType() == Mana::Event::Being + || event.getType() == Mana::Event::Player) && event.getInt("permissions") & PlayerRelation::SPEECH_FLOAT) { try @@ -1243,7 +1244,7 @@ void Being::event(Channels channel, const Mana::Event &event) {} } else if (channel == CHANNEL_CONFIG && - event.getName() == EVENT_CONFIGOPTIONCHANGED) + event.getType() == Mana::Event::ConfigOptionChanged) { if (getType() == PLAYER && event.getString("option") == "visiblenames") { |