Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keepnick.py is failing on weechat 1.9.1 #21

Open
noqqe opened this issue Jan 9, 2018 · 5 comments
Open

keepnick.py is failing on weechat 1.9.1 #21

noqqe opened this issue Jan 9, 2018 · 5 comments
Assignees

Comments

@noqqe
Copy link

noqqe commented Jan 9, 2018

Just installed it and it says:

python: stdout/stderr: Traceback (most recent call last):
python: stdout/stderr:   File "/data/.weechat/python/keepnick.py", line 147, in redirect_isonhandler
python: stdout/stderr:     grabnick_and_auth(hashtable['server'], nick)
python: stdout/stderr:   File "/data/.weechat/python/keepnick.py", line 224, in grabnick_and_auth
python: stdout/stderr:     grabnick(servername, nick)  # get your nick back
python: stdout/stderr:   File "/data/.weechat/python/keepnick.py", line 241, in grabnick
python: stdout/stderr:     weechat.command(weechat.buffer_search('irc','%s.%s' % ('server',servername)), OPTIONS['command'] % nick)
python: stdout/stderr: TypeError: not all arguments converted during string formatting
python: error in function "redirect_isonhandler"

when its trying to fix my nick. Any Ideas?

@weechatter
Copy link
Owner

version of script?

@noqqe
Copy link
Author

noqqe commented Jan 10, 2018

Its 1.6

@weechatter
Copy link
Owner

i can not reproduce. maybe some wrong settings, please check:
/set plugins.var.python.keepnick*

@weechatter weechatter self-assigned this Jan 11, 2018
@noqqe
Copy link
Author

noqqe commented Jan 11, 2018

[var] (plugins.conf)
  plugins.var.python.keepnick.command = "/nick noqqe"
  plugins.var.python.keepnick.debug = "off"
  plugins.var.python.keepnick.delay = "600"
  plugins.var.python.keepnick.nickserv = "/msg -server $server NICKSERV IDENTIFY $passwd"
  plugins.var.python.keepnick.serverlist = "freenode"
  plugins.var.python.keepnick.text = "Nickstealer left Network: %s!"
  plugins.var.python.keepnick.timeout = "60"

@weechatter
Copy link
Owner

name of variable changed in 1.5 (add evaluation for option "text" and use variable "$server" instead of "%s"), try:
/set plugins.var.python.keepnick.text "Nickstealer left Network: $server!"

also better use, instead of a hard-coded nick name:
/set plugins.var.python.keepnick.command "/nick %s"

but i'll check the problem with "%s", should not print an error message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants