del: Enable the previously dead code
[cacert-votebot.git] / src / org / cacert / votebot / IRCBot.java
1 package org.cacert.votebot;
2
3 public abstract class IRCBot {
4
5 private IRCClient c;
6
7 public IRCBot(IRCClient c) {
8 this.c = c;
9 }
10
11 public abstract void publicMessage(String from, String channel,
12 String message);
13
14 public abstract void privateMessage(String from, String message);
15
16 public void sendPublicMessage(String channel, String message) {
17 c.send(message, channel);
18 }
19
20 public void sendPrivateMessage(String to, String message) {
21 c.sendPrivate(message, to);
22 }
23
24 public abstract void part(String cleanReferent, String chn);
25
26 public abstract void join(String cleanReferent, String chn);
27
28 }