Thursday, October 21, 2004

Hello Xchat

An xchat hello command. Why not?

__module_name__ = "hellocmd" 
__module_version__ = "1.0" 
__module_description__ = "A hello command" 
import xchat

def hello_cb(word, word_eol, userdata):
	if len(word) < 2:
		print "Hello World!"
		print "Hello %s" % word_eol[1]
	return xchat.EAT_NONE

xchat.hook_command("hello", hello_cb, help="/hello <person>, says hello 
                   to person, or hello world")
That's just looking to be abused :) Saw this , about WinFS. Nothing like [insert name of query language]. Not at all.


Post a Comment

<< Home