Commit f21c9ae2dae27b3a843f90e727698be36d195e67
- Diff rendering mode:
- inline
- side by side
IRC.rb
(6 / 4)
|   | |||
| 75 | 75 | alias start connect | |
| 76 | 76 | ||
| 77 | 77 | # Joins a channel on a server. | |
| 78 | def join(channel) | ||
| 79 | if (IRCConnection.send_to_server("JOIN #{channel}")) | ||
| 80 | @channels.push(IRCChannel.new(channel)); | ||
| 81 | end | ||
| 78 | def join(*channels) | ||
| 79 | channels.each { |channel| | ||
| 80 | if (IRCConnection.send_to_server("JOIN #{channel}")) | ||
| 81 | @channels.push(IRCChannel.new(channel)); | ||
| 82 | end | ||
| 83 | } | ||
| 82 | 84 | end | |
| 83 | 85 | ||
| 84 | 86 | # Leaves a channel on a server |

