cube-drone / pierc

A python bot that logs IRC channels, and a PHP/JS interface for browsing said logs.
http://classam.github.com/pierc/
Other
52 stars 24 forks source link

irc_config bug #29

Open motbob opened 10 years ago

motbob commented 10 years ago

Pierc does not handle irc passwords with colons properly. This came up as an issue when trying to access irc.twitch.tv, where the password is always "oauth:a_string". I fixed this by manually removing most of the colons in the config file (like the one in "server: irc.ircserver.net") and modifying the line "temp = line.replace(":", "").split()" in config.py so that colons were no longer stripped.

cube-drone commented 10 years ago

I think I speak with all of the intelligence and gravitas of a real project lead when I say "I didn't even know pierc supported passwords" ;) On 5 Feb 2014 20:41, "motbob" notifications@github.com wrote:

Pierc does not handle irc passwords with colons properly. This came up as an issue when trying to access irc.twitch.tv, where the password is always "oauth:a_string". I fixed this by manually removing most of the colons in the config file (like the one in "server: irc.ircserver.net") and modifying the line "temp = line.replace(":", "").split()" in config.py so that colons were no longer stripped.

— Reply to this email directly or view it on GitHubhttps://github.com/classam/pierc/issues/29 .

motbob commented 10 years ago

It's as easy as adding a line to the config file: "password: [password]". As long as the password doesn't have a colon!

frdmn commented 10 years ago

Did you try quoting the value? Like:

password: "oauth:[password]"

Edit: just realized this probably won't work. Sorry.