Changeset 5c832c68f93277a8a0bcfa8f30493924b938a360
- Timestamp:
- 06/24/08 19:31:22
(7 months ago)
- Author:
- Yaohan Chen <yaohan.chen@gmail.com>
- git-committer:
- Yaohan Chen <yaohan.chen@gmail.com> 1214321482 -0400
- git-parent:
[06943ba66c9cb1426814f7be199f185605330a25]
- git-author:
- Yaohan Chen <yaohan.chen@gmail.com> 1214263829 -0400
- Message:
fake messages will use the originating message's reply method
this allows shell plugin to capture replies of a command even if this command is
run because of a fake message
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2897490 |
r5c832c6 |
|
| 419 | 419 | new_m = o[:class].new(o[:bot], o[:server], o[:source], o[:target], string) |
|---|
| 420 | 420 | new_m.recurse_depth = o[:depth] |
|---|
| | 421 | # if "from" message is given, the created message will reply to "from" |
|---|
| | 422 | if from |
|---|
| | 423 | class << new_m |
|---|
| | 424 | self |
|---|
| | 425 | end.send(:define_method, :reply) do |*args| |
|---|
| | 426 | from.reply *args |
|---|
| | 427 | end |
|---|
| | 428 | end |
|---|
| 421 | 429 | return new_m unless o[:delegate] |
|---|
| 422 | 430 | method = o[:class].to_s.gsub(/^Irc::|Message$/,'').downcase |
|---|