From cad3e3d5f5c273165500bff6f3f2ecd224978600 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 17 Jan 2016 21:07:51 -0800 Subject: [PATCH] Remove references to overdrive TLDs in code --- docs/technical/hooks-reference.md | 8 ++++---- tests/test_utils.py | 2 +- tests/tests_common.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/technical/hooks-reference.md b/docs/technical/hooks-reference.md index 55fa5dc..8c273b2 100644 --- a/docs/technical/hooks-reference.md +++ b/docs/technical/hooks-reference.md @@ -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'}), diff --git a/tests/test_utils.py b/tests/test_utils.py index 599bbe8..d3685bc 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -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): diff --git a/tests/tests_common.py b/tests/tests_common.py index 69b3917..1fd8030 100644 --- a/tests/tests_common.py +++ b/tests/tests_common.py @@ -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)