示例#1
0
文件: User.java 项目: Haegin/CSBot
 public User(IRCUser a_IRCUser) {
   m_Nicknames = new SelectedList<String>();
   m_Nicknames.add(a_IRCUser.getNick());
   m_Nicknames.setSelected(a_IRCUser.getNick());
   m_Username = a_IRCUser.getUsername();
   m_Host = a_IRCUser.getHost();
 }
示例#2
0
 protected boolean isAdminUser(final IrcEvent event) {
   final IRCUser sender = event.getSender();
   return dao.isAdmin(sender.getNick(), sender.getHost());
 }
示例#3
0
 @Override
 public void onQuit(IRCUser user, String msg) {
   RemoteConnector.nickPart(user.getNick(), null);
 }
示例#4
0
 @Override
 public void onPart(String chan, IRCUser user, String msg) {
   RemoteConnector.nickPart(user.getNick(), getInternalChannel(chan));
 }
示例#5
0
 @Override
 public void onNick(IRCUser user, String newNick) {
   RemoteConnector.nickChanged(user.getNick(), newNick);
 }
示例#6
0
 @Override
 public void onJoin(String chan, IRCUser user) {
   RemoteConnector.nickJoin(user.getNick(), getInternalChannel(chan));
 }