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.*; |
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 |
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 |
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; |