Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

delete old files

  • Loading branch information...
commit e64f07ebc4c9df4e7171bd62502e574213d5d745 1 parent 810e711
@fs111 authored
Showing with 0 additions and 43 deletions.
  1. +0 −32 bot.diff
  2. +0 −11 phenny-bot-IPv6-patch_irc.py.patch
View
32 bot.diff
@@ -1,32 +0,0 @@
---- ../phenny_orig/bot.py 2009-10-05 23:18:36.000000000 +0200
-+++ bot.py 2009-10-05 23:22:34.000000000 +0200
-@@ -185,6 +185,11 @@
- except Exception, e:
- self.error(origin)
-
-+ def call_with_origin(self, func, origin, phenny, input):
-+ try: func(phenny, input, origin)
-+ except Exception, e:
-+ self.error(origin)
-+
- def limit(self, origin, func):
- if origin.sender and origin.sender.startswith('#'):
- if hasattr(self.config, 'limit'):
-@@ -209,12 +214,14 @@
-
- phenny = self.wrapped(origin, text, match)
- input = self.input(origin, text, bytes, match, event, args)
--
-+ target = self.call
-+ if hasattr(func, "with_origin"):
-+ target = self.call_with_origin
- if func.thread:
- targs = (func, origin, phenny, input)
-- t = threading.Thread(target=self.call, args=targs)
-+ t = threading.Thread(target=target, args=targs)
- t.start()
-- else: self.call(func, origin, phenny, input)
-+ else: target(func, origin, phenny, input)
-
- for source in [origin.sender, origin.nick]:
- try: self.stats[(func.name, source)] += 1
View
11 phenny-bot-IPv6-patch_irc.py.patch
@@ -1,11 +0,0 @@
---- /tmp/phenny/irc.py 2010-01-30 12:23:24.000000000 +0100
-+++ irc.py 2010-02-28 23:14:31.000000000 +0100
-@@ -71,7 +71,7 @@
- if self.verbose:
- message = 'Connecting to %s:%s...' % (host, port)
- print >> sys.stderr, message,
-- self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
-+ self.create_socket(socket.AF_INET6, socket.SOCK_STREAM)
- self.connect((host, port))
- try: asyncore.loop()
- except KeyboardInterrupt:
Please sign in to comment.
Something went wrong with that request. Please try again.