diff options
| author | jason | 2012-07-21 14:47:11 -0600 |
|---|---|---|
| committer | jason | 2012-07-21 14:47:11 -0600 |
| commit | d9704befb3ab905cd0f7b88fee2fbd4bcf9edf1e (patch) | |
| tree | 9c038e680730e69cc74eaa92f6946f7accf99775 /wmd/parser.py | |
| parent | 77a4c5bf530a45a7be5bbeb435916f8997d83ecc (diff) | |
| download | warmachine-d9704befb3ab905cd0f7b88fee2fbd4bcf9edf1e.tar.gz warmachine-d9704befb3ab905cd0f7b88fee2fbd4bcf9edf1e.zip | |
Added a nickserv plugin.
Diffstat (limited to 'wmd/parser.py')
| -rw-r--r-- | wmd/parser.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/wmd/parser.py b/wmd/parser.py index cf88f75..24b965c 100644 --- a/wmd/parser.py +++ b/wmd/parser.py | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | class ircparse(object): | 1 | class IRCParse(object): |
| 2 | #http://www.irchelp.org/irchelp/rfc/rfc.html | 2 | #http://www.irchelp.org/irchelp/rfc/rfc.html |
| 3 | 3 | ||
| 4 | def __init__(self, data): | 4 | def __init__(self, data): |
| @@ -11,7 +11,7 @@ class ircparse(object): | |||
| 11 | if data != '': | 11 | if data != '': |
| 12 | self._process_data(data) | 12 | self._process_data(data) |
| 13 | 13 | ||
| 14 | def getUsername(self): | 14 | def get_username(self): |
| 15 | # Usernames are from 0 to the !... extract it out of we can. | 15 | # Usernames are from 0 to the !... extract it out of we can. |
| 16 | if self.prefix.find('!') > -1: | 16 | if self.prefix.find('!') > -1: |
| 17 | return self.prefix[0:self.prefix.index('!')] | 17 | return self.prefix[0:self.prefix.index('!')] |
| @@ -44,10 +44,4 @@ class ircparse(object): | |||
| 44 | if len(data.split(' ')) > (start_at + 1): | 44 | if len(data.split(' ')) > (start_at + 1): |
| 45 | for param in data.split(' ')[(start_at+1):]: | 45 | for param in data.split(' ')[(start_at+1):]: |
| 46 | self.params += param + " " | 46 | self.params += param + " " |
| 47 | self.params.strip() | 47 | self.params.strip() \ No newline at end of file |
| 48 | |||
| 49 | class configparse(object): | ||
| 50 | def __init__(self, filename): | ||
| 51 | self.filename = filename | ||
| 52 | |||
| 53 | |||