aboutsummaryrefslogtreecommitdiff
path: root/src/IvyClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/IvyClient.java')
-rwxr-xr-xsrc/IvyClient.java26
1 files changed, 4 insertions, 22 deletions
diff --git a/src/IvyClient.java b/src/IvyClient.java
index 2c9b9ce..85edfc8 100755
--- a/src/IvyClient.java
+++ b/src/IvyClient.java
@@ -234,26 +234,6 @@ public class IvyClient implements Runnable {
sendString(Die,0,message);
}
- /**
- * checks the "validity" of a regular expression.
- * @param exp the string being a regular expression
- * @return true if the regexp is valid
- * @since 1.2.4
- */
- public boolean CheckRegexp( String exp ) {
- return true;
- /*
- boolean ok = true;
- if ( exp.startsWith( "^" )&&messages_classes!=null) {
- ok=false;
- for (int i=0 ; i < messages_classes.length;i++) {
- if (messages_classes[i].equals(exp.substring(1))) return true;
- }
- }
- return ok;
- */
- }
-
///////////////////////////////////////////////////
//
// PROTECTED METHODS
@@ -493,7 +473,7 @@ public class IvyClient implements Runnable {
break;
case AddRegexp:
String regexp=s.substring(from,b.length);
- if ( CheckRegexp(regexp) ) {
+ if ( bus.CheckRegexp(regexp) ) {
try {
regexps.put(msgId,new RE(regexp));
regexpsText.put(msgId,regexp);
@@ -504,7 +484,9 @@ public class IvyClient implements Runnable {
sendBuffer(Error+e.toString());
}
} else {
- throw new IvyException("regexp Warning exp='"+regexp+"' can't match removing from "+appName);
+ // throw new IvyException("regexp Warning exp='"+regexp+"' can't match removing from "+appName);
+ traceDebug("Warning "+appName+" subscribes to '"+regexp+"', it can't match our message filter");
+ bus.regexpReceived(this,msgId.intValue(),regexp);
}
break;
case DelRegexp: