]> jfr.im git - irc/Ozafy/borknet_p10_irc_services.git/blob - core/ChannelUser.java
First commit
[irc/Ozafy/borknet_p10_irc_services.git] / core / ChannelUser.java
1 /**
2 #
3 # BorkNet Services Core
4 #
5
6 #
7 # Copyright (C) 2004 Ozafy - ozafy@borknet.org - http://www.borknet.org
8 #
9 # This program is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License
11 # as published by the Free Software Foundation; either version 2
12 # of the License, or (at your option) any later version.
13 #
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #
23 */
24 package borknet_services.core;
25 import borknet_services.core.*;
26 import java.util.*;
27
28 public class ChannelUser
29 {
30 private String user;
31 private boolean op;
32 private boolean voice;
33 public ChannelUser(String user, boolean isop, boolean isvoice)
34 {
35 this.user=user;
36 this.op=isop;
37 this.voice=isvoice;
38 }
39
40 public String getNumeric()
41 {
42 return user;
43 }
44
45 public boolean isop()
46 {
47 return op;
48 }
49
50 public void isop(boolean isop)
51 {
52 this.op = isop;
53 }
54
55 public boolean isvoice()
56 {
57 return voice;
58 }
59
60 public void isvoice(boolean isvoice)
61 {
62 this.voice = isvoice;
63 }
64 }