ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/client/alerters/IRC__Alerter.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/client/alerters/IRC__Alerter.java (file contents):
Revision 1.27 by tdb, Sat Mar 24 18:43:38 2001 UTC vs.
Revision 1.30 by tdb, Thu Jan 17 17:58:12 2002 UTC

# Line 1 | Line 1
1   //---PACKAGE DECLARATION---
2 < package uk.org.iscream.client.alerters;
2 > package uk.org.iscream.cms.server.client.alerters;
3  
4   //---IMPORTS---
5 < import uk.org.iscream.client.*;
6 < import uk.org.iscream.core.*;
7 < import uk.org.iscream.util.*;
8 < import uk.org.iscream.componentmanager.*;
5 > import uk.org.iscream.cms.server.client.*;
6 > import uk.org.iscream.cms.server.core.*;
7 > import uk.org.iscream.cms.server.util.*;
8 > import uk.org.iscream.cms.server.componentmanager.*;
9   import java.io.*;
10   import java.net.*;
11   import java.util.*;
# Line 95 | Line 95 | public class IRC__Alerter extends AlerterSkeleton {
95       * Overrides the {@link java.lang.Object#toString() Object.toString()}
96       * method to provide clean logging (every class should have this).
97       *
98 <     * This uses the uk.org.iscream.util.NameFormat class
98 >     * This uses the uk.org.iscream.cms.server.util.NameFormat class
99       * to format the toString()
100       *
101       * @return the name of this class and its CVS revision
# Line 120 | Line 120 | public class IRC__Alerter extends AlerterSkeleton {
120  
121   //---ACCESSOR/MUTATOR METHODS---
122  
123 +    /**
124 +     * Returns the "friendly" name of this class. This
125 +     * is simply an accessor for _name, required due to
126 +     * inheritance issues with extending AlerterSkeleton.
127 +     *
128 +     * @return the friendly name
129 +     */
130 +    protected String getFName() {
131 +        return _name;
132 +    }
133 +
134   //---ATTRIBUTES---
135      
136      /**
# Line 406 | Line 417 | public class IRC__Alerter extends AlerterSkeleton {
417           * Overrides the {@link java.lang.Object#toString() Object.toString()}
418           * method to provide clean logging (every class should have this).
419           *
420 <         * This uses the uk.org.iscream.util.NameFormat class
420 >         * This uses the uk.org.iscream.cms.server.util.NameFormat class
421           * to format the toString()
422           *
423           * @return the name of this class and its CVS revision
# Line 431 | Line 442 | public class IRC__Alerter extends AlerterSkeleton {
442                  _socketOut.println("PONG" + line.substring(4));
443              }
444              // see if it's for us
445 <            else if(getMsg(line).startsWith(_nickname+",") || getMsg(line).startsWith(_nickname+":") || getMsg(line).startsWith(_nickname+" ")) {
445 >            else if(getMsg(line).toLowerCase().startsWith(_nickname.toLowerCase()+",") ||
446 >                    getMsg(line).toLowerCase().startsWith(_nickname.toLowerCase()+":") ||
447 >                    getMsg(line).toLowerCase().startsWith(_nickname.toLowerCase()+" ")) {
448                  // setup some String's
449                  String stopCommand, startCommand, timeSinceLastAlertCommand, lastAlertCommand, joinCommand;
450                  String nickChangeCommand, versionCommand, helpCommand, statCommand, uptimeCommand;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines