Permalink
Browse files

replies to both channels and nicks correctly

  • Loading branch information...
alivesay committed Jan 20, 2013
1 parent bdb126b commit c910bd74ca295d9626ceaf2e3cf53b1536703c14
Showing with 5 additions and 2 deletions.
  1. BIN omegadoom/plugins/.default.py.swp
  2. +5 −2 omegadoom/plugins/default.py
Binary file not shown.
@@ -23,7 +23,10 @@ def run_command(self, protocol, command, data, privmsg):
protocol.ping(nick)
elif command == 'echo':
- protocol.msg(nick_or_channel, message)
+ protocol.msg(nick, message)
+
+# elif command == 'dns':
+# self._dns_requests[nick] = (priv
def notify(self, protocol, event, *args):
@@ -38,7 +41,7 @@ def _notify_pong(self, protocol, *args):
if nick in self._ping_requests:
privmsg, timestamp = self._ping_requests[nick]
prefix, channel, message = privmsg
-
+
nick_or_channel = nick if channel == self.config['nickname'] else channel
protocol.msg(nick_or_channel, 'CTCP PING reply in %s secs' % (secs))

0 comments on commit c910bd7

Please sign in to comment.