-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,5 +68,13 @@ def match(pattern) | |
def reply(*strings) | ||
@robot.send_messages(source, *strings) | ||
end | ||
|
||
# Replies by sending the given strings back to the user who sent the | ||
# message directly, even if the message was sent in a room. | ||
# @param strings [String, Array<String>] The strings to send back. | ||
# @return [void] | ||
def reply_privately(*strings) | ||
@robot.send_messages(Source.new(source.user), *strings) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jimmycuadra
Author
Collaborator
|
||
end | ||
end | ||
end |
This breaks adapters (Campfire) that don't support private messaging. Without a room in the source, there's no way to send the message anywhere.