mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-17 23:52:49 +01:00
Remove references to overdrive TLDs in code
This commit is contained in:
parent
bb9d87bdca
commit
cad3e3d5f5
@ -15,9 +15,9 @@ Note that the `ts` key is *automatically added* (using the current time) to all
|
||||
|
||||
### Example syntax
|
||||
|
||||
The command `:42XAAAAAB PRIVMSG #endlessvoid :test` would result in the following raw hook data:
|
||||
The command `:42XAAAAAB PRIVMSG #dev :test` would result in the following raw hook data:
|
||||
|
||||
- `['42XAAAAAB', 'PRIVMSG', {'target': '#endlessvoid', 'text': 'test', 'ts': 1451174041}]`
|
||||
- `['42XAAAAAB', 'PRIVMSG', {'target': '#dev', 'text': 'test', 'ts': 1451174041}]`
|
||||
|
||||
On UnrealIRCd, because SETHOST is mapped to CHGHOST, `:GL SETHOST blah` would return the raw hook data of this (with the nick converted into UID by the UnrealIRCd protocol module):
|
||||
|
||||
@ -62,14 +62,14 @@ The following hooks, sent with their correct data keys, are required for PyLink'
|
||||
- ```
|
||||
{'olduser': IrcUser({'away': '',
|
||||
'channels': {'#chat'},
|
||||
'host': 'pylink-devel.overdrivenetworks.com',
|
||||
'host': 'pylink.local',
|
||||
'ident': 'pylink',
|
||||
'identified': False,
|
||||
'ip': '0.0.0.0',
|
||||
'manipulatable': True,
|
||||
'modes': {('o', None)},
|
||||
'nick': 'PyLink-devel',
|
||||
'realhost': 'pylink-devel.overdrivenetworks.com',
|
||||
'realhost': 'pylink.local',
|
||||
'realname': 'PyLink development server',
|
||||
'ts': 1452393682,
|
||||
'uid': '7PYAAAAAE'}),
|
||||
|
@ -63,7 +63,7 @@ class TestUtils(unittest.TestCase):
|
||||
self.assertFalse(utils.isServerName('.s.s.s'))
|
||||
self.assertTrue(utils.isServerName('Hello.world'))
|
||||
self.assertFalse(utils.isServerName(''))
|
||||
self.assertTrue(utils.isServerName('pylink.overdrive.pw'))
|
||||
self.assertTrue(utils.isServerName('pylink.somenet.local'))
|
||||
self.assertFalse(utils.isServerName(' i lost th.e game'))
|
||||
|
||||
def testJoinModes(self):
|
||||
|
@ -85,7 +85,7 @@ class CommonProtoTestCase(PluginTestCase):
|
||||
|
||||
def testSpawnClientOnServer(self):
|
||||
self.proto.spawnServer('subserver.pylink', '34Q')
|
||||
u = self.proto.spawnClient('person1', 'person', 'users.overdrive.pw', server='34Q')
|
||||
u = self.proto.spawnClient('person1', 'person', 'users.somenet.local', server='34Q')
|
||||
# We're spawning clients on the right server, hopefully...
|
||||
self.assertIn(u.uid, self.irc.servers['34Q'].users)
|
||||
self.assertNotIn(u.uid, self.irc.servers[self.irc.sid].users)
|
||||
|
Loading…
Reference in New Issue
Block a user