{"action":"created","issue":{"url":"https://api.github.com/repos/cinchrb/cinch/issues/209","labels_url":"https://api.github.com/repos/cinchrb/cinch/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/cinchrb/cinch/issues/209/comments","events_url":"https://api.github.com/repos/cinchrb/cinch/issues/209/events","html_url":"https://github.com/cinchrb/cinch/issues/209","id":113083915,"number":209,"title":"Mask#nick does not get the right value","user":{"login":"elifoster","id":4176124,"avatar_url":"https://avatars.githubusercontent.com/u/4176124?v=3","gravatar_id":"","url":"https://api.github.com/users/elifoster","html_url":"https://github.com/elifoster","followers_url":"https://api.github.com/users/elifoster/followers","following_url":"https://api.github.com/users/elifoster/following{/other_user}","gists_url":"https://api.github.com/users/elifoster/gists{/gist_id}","starred_url":"https://api.github.com/users/elifoster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifoster/subscriptions","organizations_url":"https://api.github.com/users/elifoster/orgs","repos_url":"https://api.github.com/users/elifoster/repos","events_url":"https://api.github.com/users/elifoster/events{/privacy}","received_events_url":"https://api.github.com/users/elifoster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-23T19:22:17Z","updated_at":"2015-10-23T20:36:20Z","closed_at":null,"body":"Looking at the source, regex really should not be used for this. The reason is that, first of all, users on webchat's nicknames automatically get turned into `\"*\"` according to the method. Along with that, the value that the regexp gets for the nick is actually the *username*, not the nickname. And even then, it's not the full username most of the time. For example, it would get \"LittleHel\" rather than \"LittleHelper\". \r\n\r\nMy proposed solution would be to somehow, instead of attempting to get the nickname through the hostmask (which is wrong), get a User object by the hostmask. Then you don't even need any of these methods or attr_readers because you can just get them correctly from the User object that you get."},"comment":{"url":"https://api.github.com/repos/cinchrb/cinch/issues/comments/150683116","html_url":"https://github.com/cinchrb/cinch/issues/209#issuecomment-150683116","issue_url":"https://api.github.com/repos/cinchrb/cinch/issues/209","id":150683116,"user":{"login":"elifoster","id":4176124,"avatar_url":"https://avatars.githubusercontent.com/u/4176124?v=3","gravatar_id":"","url":"https://api.github.com/users/elifoster","html_url":"https://github.com/elifoster","followers_url":"https://api.github.com/users/elifoster/followers","following_url":"https://api.github.com/users/elifoster/following{/other_user}","gists_url":"https://api.github.com/users/elifoster/gists{/gist_id}","starred_url":"https://api.github.com/users/elifoster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elifoster/subscriptions","organizations_url":"https://api.github.com/users/elifoster/orgs","repos_url":"https://api.github.com/users/elifoster/repos","events_url":"https://api.github.com/users/elifoster/events{/privacy}","received_events_url":"https://api.github.com/users/elifoster/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T20:36:20Z","updated_at":"2015-10-23T20:36:20Z","body":"I wrote up some code quickly to easily get you relevant information, using the unban event's Ban object. Here is an IRC log with useless stuff stripped.\r\n\r\n```\r\n[13:33:23] LittleHelper [~LittleHel@2601:1c2:e01:3f07:842d:d46f:6d0d:b7f7] has joined #FTB-Wiki-Dev\r\n[13:33:26] <@SatanicSanta> !unban LittleHelper\r\n[13:33:27] <@LittleHelper> Nick: *\r\n[13:33:27] <@LittleHelper> Mask: *!*@2601:1c2:e01:3f07:842d:d46f:6d0d:b7f7\r\n[13:33:41] <@SatanicSanta> !unban xbony2|afk\r\n[13:33:42] <@LittleHelper> Nick: *\r\n[13:33:42] <@LittleHelper> Mask: *!*@cpe-174-108-91-100.carolina.res.rr.com\r\n[13:33:53] <@SatanicSanta> !unban Some-Annoying-Person\r\n[13:33:54] <@LittleHelper> Nick: *\r\n[13:33:54] <@LittleHelper> Mask: *!*@76.115.19.199\r\n```"}}