Skip to content

Instantly share code, notes, and snippets.

Created December 17, 2012 03:18
Show Gist options
  • Select an option

  • Save anonymous/4315568 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/4315568 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Dec 17, 2012.
    13 changes: 13 additions & 0 deletions gistfile1.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    from pyspades.constants import *

    def apply_script(protocol, connection, config):
    class TemplateProtocol(protocol):
    def __init__(self, team, *args, **kwargs):
    return connection.on_team_join(self, team, *args, **kwargs)

    class TemplateConnection(connection):
    def __init__(self, *args, **kwargs):
    return connection.on_team_join(self, *args, **kwargs)

    return TemplateProtocol, TemplateConnection