18
18
"
19
19
" Supported ~/.vimrc Variables:
20
20
" g:vimchat_accounts = {'jabber id':'password',...}
21
- "
22
21
" g:vimchat_buddylistwidth = width of buddy list
23
22
" g:vimchat_libnotify = (0 or 1) default is 1
24
23
" g:vimchat_logpath = path to store log files
25
24
" g:vimchat_logchats = (0 or 1) default is 1
26
- " g:vimchat_otr = (0 or 1) default is 1
25
+ " g:vimchat_otr = (0 or 1) default is 0
27
26
" g:vimchat_logotr = (0 or 1) default is 1
28
27
" g:vimchat_statusicon = (0 or 1) default is 1
29
28
@@ -136,12 +135,10 @@ class VimChatScope:
136
135
self .statusIcon.start ()
137
136
138
137
# Signon to accounts listed in .vimrc
139
- vimChatAccounts = vim .eval (' g:vimchat_accounts' )
140
- for jid,password in vimChatAccounts.items ():
141
- pass
142
- if password == ' ' :
143
- password = vim .eval (' inputsecret("' + jid + ' password: ")' )
144
- self ._signOn (jid,password)
138
+ if vim .eval (" exists('g:vimchat_accounts')" ) == ' 1' :
139
+ vimChatAccounts = vim .eval (' g:vimchat_accounts' )
140
+ for jid,password in vimChatAccounts.items ():
141
+ self ._signOn (jid,password)
145
142
146
143
# Signon to accounts listed in .vimchat/config
147
144
if os.path .exists (self .configFilePath):
@@ -150,9 +147,6 @@ class VimChatScope:
150
147
if config.has_section (' accounts' ):
151
148
for jid in config.options (' accounts' ):
152
149
password = config.get (' accounts' , jid)
153
- if not password:
154
- password = vim .eval (
155
- ' inputsecret("' + jid + ' password: ")' )
156
150
self ._signOn (jid, password)
157
151
158
152
#}}}
@@ -1637,10 +1631,6 @@ set switchbuf=usetab
1637
1631
" }}}
1638
1632
" {{{ VimChatCheckVars
1639
1633
fu ! VimChatCheckVars ()
1640
- if ! exists (' g:vimchat_accounts' )
1641
- echo " Must set g:vimchat_accounts in ~/.vimrc!"
1642
- return 0
1643
- endif
1644
1634
if ! exists (' g:vimchat_buddylistwidth' )
1645
1635
let g: vimchat_buddylistwidth= 30
1646
1636
endif
@@ -1654,7 +1644,7 @@ fu! VimChatCheckVars()
1654
1644
let g: vimchat_logchats= 1
1655
1645
endif
1656
1646
if ! exists (' g:vimchat_otr' )
1657
- let g: vimchat_otr= 1
1647
+ let g: vimchat_otr= 0
1658
1648
endif
1659
1649
if ! exists (' g:vimchat_logotr' )
1660
1650
let g: vimchat_logotr= 1
0 commit comments