From dcfea9f496f23929157c5a4ad40f282e4fade8df Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Tue, 16 Mar 2010 13:56:51 -0600 Subject: [PATCH] remember: accept "? word" form, tell: do communications in pm, main: don't prefix replies with nickname if pm --- core/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/main.py b/core/main.py index ba73985..ed56710 100644 --- a/core/main.py +++ b/core/main.py @@ -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)