nmlorg / naim

naim is a console client for AOL Instant Messenger (AIM), AOL I Seek You (ICQ), Internet Relay Chat (IRC), and The lily CMC.
http://naim.n.ml.org/
1 stars 0 forks source link

hook into existing commands #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
add the ability to hook into existing commands (preferably by using the 
exist hook infrastructure).

example code might look like:

def myFunc(conn, command, args, flags):
  if command == 'poke':
    conn.commands.msg(args[0], "You have been poked")

naim.hooks.add('command', 200, myFunc)

Original issue reported on code.google.com by eminence@gmail.com on 23 Jul 2009 at 10:41

GoogleCodeExporter commented 9 years ago

Original comment by eminence@gmail.com on 23 Jul 2009 at 10:41

GoogleCodeExporter commented 9 years ago
implementation of this may be related to the implementation of RFE #28

Original comment by eminence@gmail.com on 23 Jul 2009 at 11:08