@@ -48,18 +48,27 @@ def set_username(self, username):
4848 username = property (get_username , set_username )
4949
5050 def set_password (self , password ):
51+ if not self .online_mode :
52+ logger .warning ("PASSWORD PROVIDED WITH ONLINE_MODE == FALSE" )
53+ logger .warning ("YOU PROBABLY DIDN'T WANT TO DO THAT" )
5154 self .ygg .password = password
5255
5356 password = property (lambda x : bool (x .ygg .password ), set_password )
5457
5558 def set_client_token (self , client_token ):
59+ if not self .online_mode :
60+ logger .warning ("CLIENT TOKEN PROVIDED WITH ONLINE_MODE == FALSE" )
61+ logger .warning ("YOU PROBABLY DIDN'T WANT TO DO THAT" )
5662 self .ygg .client_token = client_token
5763
5864 client_token = property (
5965 lambda x : bool (x .ygg .client_token ), set_client_token
6066 )
6167
6268 def set_auth_token (self , auth_token ):
69+ if not self .online_mode :
70+ logger .warning ("AUTH TOKEN PROVIDED WITH ONLINE_MODE == FALSE" )
71+ logger .warning ("YOU PROBABLY DIDN'T WANT TO DO THAT" )
6372 self .ygg .auth_token = auth_token
6473
6574 auth_token = property (
@@ -110,7 +119,7 @@ def send_session_auth(self, pubkey_raw, server_id_raw):
110119class AuthPlugin (PluginBase ):
111120 requires = 'Event'
112121 defaults = {
113- 'online_mode' : False ,
122+ 'online_mode' : True ,
114123 'auth_timeout' : 3 , # No idea how long this should be, 3s seems good
115124 'auth_quit' : True ,
116125 'sess_quit' : True ,
0 commit comments