+ /*
+ * handle a message that could come from either UID or SID and matched
+ * either one of them.
+ */
+ public void on(Server server, User user, String[] params) {
+ /* default implementation for backwards compat */
+ if (user != null && server == null)
+ {
+ on(user.getNick(), params);
+ }
+ else if (server != null && user == null)
+ {
+ on(server.getName(), params);
+ }
+ else
+ {
+ /*
+ * both server and user are set, this shouldn't be possible
+ * unless something got changed in AcidCore. or both are null
+ * which shouldn't be possible either.
+ */
+ throw new RuntimeException("both server and user are not null or both are null");
+ }
+
+ }
+