PrivateParlorXT::ForwardHandler
Inherits PrivateParlorXT::UpdateHandler < PrivateParlorXT::Handler < Reference < Object
A handler for forwarded message updates
Instance methods
Returns true if the forwarded poll does not have anonymous voting
Returns false otherwise
Checks if the forwarded message meets requirements and relays it
Checks if the user is spamming forwarded messages
Returns true if the user is spamming forwarded messages, false otherwise
spend_karma(user : User, services : Services) : User
Returns the User with decremented karma when KarmaHandler is enabled and
user has sufficient karma for a forwarded message
Checks if the user has sufficient karma to send a forwarded message when KarmaHandler is enabled
Returns true if:
KarmaHandleris not enabled- The price for forwarded messages is less than 0
- The user's
Rankis equal to or greater than the cutoffRank - User has sufficient karma
Returns nil if the user does not have sufficient karma