Skip to content

Instantly share code, notes, and snippets.

@FurryHead
Created June 2, 2011 14:47
Show Gist options
  • Save FurryHead/1004582 to your computer and use it in GitHub Desktop.
Save FurryHead/1004582 to your computer and use it in GitHub Desktop.
def main():
#main loop
#....
if irc_line is a message:
sawMessage(channel, user, message)
#....
def sawMessage(channel, user, message):
#do processing to call all plugins
#...
def doMessage(channel, message):
send_irc_line("PRIVMSG "+channel+" :"+message)
#Right here, should this call sawMessage?
sawMessage(channel, my_nickname, message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment