]> git.somenet.org - irc/pjirc-ng.git/blob - src/main/java/irc/DefaultSource.java
Pjirc 2.2.1 as available on the net, reformatted and made it compile.
[irc/pjirc-ng.git] / src / main / java / irc / DefaultSource.java
1 /*****************************************************/
2 /*          This java file is a part of the          */
3 /*                                                   */
4 /*           -  Plouf's Java IRC Client  -           */
5 /*                                                   */
6 /*   Copyright (C)  2002 - 2005 Philippe Detournay   */
7 /*                                                   */
8 /*         All contacts : theplouf@yahoo.com         */
9 /*                                                   */
10 /*  PJIRC is free software; you can redistribute     */
11 /*  it and/or modify it under the terms of the GNU   */
12 /*  General Public License as published by the       */
13 /*  Free Software Foundation; version 2 or later of  */
14 /*  the License.                                     */
15 /*                                                   */
16 /*  PJIRC is distributed in the hope that it will    */
17 /*  be useful, but WITHOUT ANY WARRANTY; without     */
18 /*  even the implied warranty of MERCHANTABILITY or  */
19 /*  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU   */
20 /*  General Public License for more details.         */
21 /*                                                   */
22 /*  You should have received a copy of the GNU       */
23 /*  General Public License along with PJIRC; if      */
24 /*  not, write to the Free Software Foundation,      */
25 /*  Inc., 59 Temple Place, Suite 330, Boston,        */
26 /*  MA  02111-1307  USA                              */
27 /*                                                   */
28 /*****************************************************/
29
30 package irc;
31
32 /**
33  * The Default No-Source.
34  */
35 public class DefaultSource extends Source {
36         /**
37          * Create a new DefaultSource
38          * 
39          * @param config
40          */
41         public DefaultSource(IRCConfiguration config) {
42                 super(config, new NullServer());
43         }
44
45         @Override
46         public boolean talkable() {
47                 return false;
48         }
49
50         @Override
51         public String getType() {
52                 return "Default";
53         }
54
55         @Override
56         public String getName() {
57                 return "Global";
58         }
59
60         @Override
61         public void leave() {
62                 // nothing here
63         }
64 }