remember: accept "? word" form, tell: do communications in pm, main: don't prefix replies with nickname if pm

This commit is contained in:
Ryan Hitchman 2010-03-16 13:56:51 -06:00
parent 309bf87202
commit dcfea9f496
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,10 @@ class Input(dict):
conn.msg(chan, msg)
def reply(msg):
conn.msg(chan, nick + ': ' + msg)
if chan == nick: # PMs don't need prefixes
conn.msg(chan, msg)
else:
conn.msg(chan, nick + ': ' + msg)
def pm(msg):
conn.msg(nick, msg)