Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pjlantz committed Aug 12, 2010
1 parent 1a28e4f commit 860ded1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README
Expand Up @@ -140,7 +140,7 @@ Socksify:
# in the constructor create a new proxy object
self.prox = proxySelector.ProxySelector()

# in the run method add the following after having created the factory method
# in the run method add the following after having created the factory method.
proxyInfo = self.prox.getRandomProxy()
if proxyInfo == None:
self.connector = reactor.connectTCP(host, port, factory)
Expand Down Expand Up @@ -171,9 +171,9 @@ def putLog(self, log):
# and call it in the protocol class with: self.factory.checkForURL(data)
def checkForURL(self, data):
"""
Check for URL in the event handler
"""
Check for URL in the event handler
"""

moduleCoordinator.ModuleCoordinator().addEvent(moduleCoordinator.URL_EVENT, data, self.hash)

# if you module should detect IP numbers of other bots and herders implement the following method in the factory
Expand All @@ -185,7 +185,7 @@ def addRelIP(self, data):

moduleCoordinator.ModuleCoordinator().addEvent(moduleCoordinator.RELIP_EVENT, data, self.hash)

handling related IPs is done by applying a regular expression to be used for the protocol that the module is going to support, in case of irc it looks like this:
handling related IPs is done by applying a regular expression to be used for the protocol that the module is going to support, in case of irc module, the code looks like this:

checkHost = data.split(':')[1].split(' ')[0].strip()
match = self.factory.expr.findall(checkHost)
Expand Down

0 comments on commit 860ded1

Please sign in to comment.