Permalink
Browse files

added diff for phenny code base

  • Loading branch information...
1 parent 99d96dd commit ceb04deea6796413b6478556ae9503d5f8b4c367 @fs111 committed Oct 5, 2009
Showing with 20 additions and 0 deletions.
  1. +20 −0 bot.diff
View
@@ -0,0 +1,20 @@
+188,192d187
+< def call_with_origin(self, func, origin, phenny, input):
+< try: func(phenny, input, origin)
+< except Exception, e:
+< self.error(origin)
+<
+217,219c212
+< target = self.call
+< if hasattr(func, "with_origin"):
+< target = self.call_with_origin
+---
+>
+222c215
+< t = threading.Thread(target=target, args=targs)
+---
+> t = threading.Thread(target=self.call, args=targs)
+224c217
+< else: target(func, origin, phenny, input)
+---
+> else: self.call(func, origin, phenny, input)

0 comments on commit ceb04de

Please sign in to comment.