Jelajahi Sumber

The WHOIS has never let me down

Literally never failed. The confusion is, it'll sometimes fail if you
WHOIS from their osu! username, but never from the IRC username.
IRC usernames never conflict, since they're assigned when you connect.
Clément Wolf 9 bulan lalu
induk
melakukan
92425b5fd3
1 mengubah file dengan 0 tambahan dan 5 penghapusan
  1. 0 5
      bancho.js

+ 0 - 5
bancho.js

@@ -296,11 +296,6 @@ class BanchoClient extends EventEmitter {
   }
 
   // (async) Get a user ID from an IRC username.
-  //
-  // Avoid using this whenever possible, since a IRC username can sometimes
-  // resolve to multiple players, and idk what happens in that case.
-  //
-  // Intentionally fails after 5 seconds just in case.
   whois(irc_username) {
     return new Promise((resolve, reject) => {
       if (irc_username.indexOf(' ') != -1) {