Changeset 147
- Timestamp:
- 06/11/08 15:48:26 (2 months ago)
- Files:
-
- trunk/antimatter/luke/myplugs/libtracker/auth.py (modified) (2 diffs)
- trunk/antimatter/luke/myplugs/libtracker/tracker.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/antimatter/luke/myplugs/libtracker/auth.py
r146 r147 2 2 from gozerbot.generic import waitforuser, rlog 3 3 from user import User 4 5 authenticated = {} 6 4 7 def authenticate_name(bot, ievent): 5 """ Not authentication, just checks that the name exists """ 8 """ Not authentication, just checks that the name exists 9 Input: Bot, Ircevent 10 Output: User (or None if authentication failed) 11 """ 6 12 bot.say(ievent.nick,"Username?",how='msg') 7 13 #rlog(99,"Debug","Testing for auth reload") … … 19 25 return user 20 26 21 def check_auth(bot, ievent): 27 def check_auth(ievent): 28 """ Checks to see if the user is already authenticated 29 Input: Ircevent 30 Output: User 31 """ 22 32 pass 23 33 34 def set_auth(ievent): 35 """ Puts the userhost into the authentication dictionary 36 Input: Ircevent 37 Output: bool 38 """ 39 pass trunk/antimatter/luke/myplugs/libtracker/tracker.py
r146 r147 7 7 user = auth.check_auth(ievent) 8 8 if (user.name == None): 9 ievent.reply("I'm sorry Dave, but I'm afraid I don't know your name") 9 ievent.reply("I'm sorry Dave, but I'm afraid you haven't \ 10 authenticated yet") 10 11 return 11 12 ievent.reply(user.name)