Skip to content

Instantly share code, notes, and snippets.

@iamgreaser
Forked from anonymous/gist:4315568
Created December 17, 2012 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamgreaser/4315570 to your computer and use it in GitHub Desktop.
Save iamgreaser/4315570 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment