Skip to content

Instantly share code, notes, and snippets.

@austinbv
Created July 2, 2012 04:07
Show Gist options
  • Save austinbv/3031022 to your computer and use it in GitHub Desktop.
Save austinbv/3031022 to your computer and use it in GitHub Desktop.
#! /usr/bin/env ruby
load File.expand_path '~/.weechat_passwords'
def weechat_init
Weechat.register "identify_for_freenode", "austinbv", "0.1", "MIT", "idenfify my nick", "", ""
buffer = Weechat.info_get "irc_buffer", "freenode"
Weechat.command buffer, "/msg NickServ identify #{Passwords::Freenode.password}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment