Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zach van Rijn
Emily
Commits
d91c4f8a
Commit
d91c4f8a
authored
Oct 08, 2015
by
A. Wilcox
🦊
Browse files
Set a nice version string for IRC
parent
095bdeed
Changes
1
Hide whitespace changes
Inline
Side-by-side
emily/out/irc.py
View file @
d91c4f8a
...
...
@@ -3,10 +3,12 @@ from collections import defaultdict
from
PyIRC.extensions
import
bot_recommended
from
PyIRC.io.asyncio
import
IRCProtocol
from
PyIRC.signal
import
event
from
PyIRC.util.version
import
versionstr
from
emily
import
config
from
emily.core
import
push_event
class
IRCNetwork
(
IRCProtocol
):
"""The basic IRC network representation. Each network has an instance."""
def
__init__
(
self
,
*
args
,
**
kwargs
):
...
...
@@ -42,6 +44,9 @@ class IRC:
self
.
network_instances
=
{}
self
.
projects
=
defaultdict
(
list
)
url
=
'https://code.foxkit.us/wilcox-tech/emily-ng'
my_ver
=
'Emily ({}) on PyIRC v{}'
.
format
(
url
,
versionstr
)
for
network
in
self
.
networks
:
args
=
{
'serverport'
:
(
myconf
[
network
+
'_server'
],
...
...
@@ -50,6 +55,7 @@ class IRC:
'nick'
:
myconf
[
network
+
'_nick'
],
'gecos'
:
myconf
[
network
+
'_gecos'
],
'extensions'
:
bot_recommended
,
'ctcp_version'
:
my_ver
,
'join'
:
[],
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment