lib/protonbot/plug_io.rb in protonbot-0.1.3 vs lib/protonbot/plug_io.rb in protonbot-0.2.0

- old
+ new

@@ -44,10 +44,11 @@ log.info "W > #{s}" end # Sends credentials to server (PASS, NICK, USER). def introduce - write_("PASS #{@conf['pass']}") if @conf['pass'] + write_("PASS #{@conf['pass']}") if @conf['pass'] and !@use_sasl + write_("CAP REQ :sasl") if @use_sasl write_("NICK #{@conf['nick']}") write_("USER #{@conf['user']} 0 * :#{@conf['rnam']}") end # Splits given string each 399 bytes and on newlines