Added configure.

This commit is contained in:
Jeremy Fincher 2003-04-08 07:07:10 +00:00
parent fa3e65d7b1
commit e5b0cd33a3

View File

@ -47,6 +47,13 @@ import privmsgs
import ircutils
import callbacks
def configure(onStart, afterConnect, advanced):
from questions import expect, anything, something, yn
nick = anything('What is your registered nick?')
password = anything('What is your password for that nick?')
onStart.append('load NickServ')
onStart.append('startnickserv %s %s' % (nick, password))
class NickServ(privmsgs.CapabilityCheckingPrivmsg):
capability = 'owner'
def __init__(self):