private void parseList(String list,String prefix){
  String[] split2=list.split(",");
  for (  String part : split2) {
    if (!part.isEmpty()) {
      if (prefix.equals("chan:")) {
        channels.add(Helper.toChannel(part));
      }
 else       if (prefix.equals("!chan:")) {
        notChannels.add(Helper.toChannel(part));
      }
 else       if (prefix.equals("config:")) {
        if (part.equals("silent")) {
          noSound=true;
        }
 else         if (part.equals("!notify")) {
          noNotification=true;
        }
 else         if (part.equals("info")) {
          appliesToInfo=true;
        }
      }
    }
  }
}

private void parseList ( String list , String prefix ) { String [ ] split2 = list . split ( "," ) ; for ( String part : split2 ) { if ( ! part . isEmpty ( ) ) { if ( prefix . equals ( "chan:" ) ) { channels . add ( Helper . toChannel ( part ) ) ; } else if ( prefix . equals ( "!chan:" ) ) { notChannels . add ( Helper . toChannel ( part ) ) ; } else if ( prefix . equals ( "config:" ) ) { if ( part . equals ( "silent" ) ) { noSound = true ; } else if ( part . equals ( "!notify" ) ) { noNotification = true ; } else if ( part . equals ( "info" ) ) { appliesToInfo = true ; } } } } }
parses a comma - seperated list of a prefix .
