Commit 1112c682 authored by Adam Gausmann's avatar Adam Gausmann

Add method for getting users from usermasks.

parent e0fb3bcb
Pipeline #4303845 passed with stages
in 10 seconds
......@@ -82,6 +82,8 @@ public interface ConnectionManager {
User getUser(String userId);
User getUser(UserMask userMask);
* Gets the currently-configured host that the client is connecting to.
......@@ -242,8 +242,13 @@ public class ConnectionManagerImpl implements ConnectionManager {
public User getUser(String userId) {
return new UserImpl(bot, userId);
public User getUser(String mask) {
return new UserImpl(bot, mask);
public User getUser(UserMask userMask) {
return new UserImpl(bot, userMask);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment