Commit fcd883f1 authored by Romain Bignon's avatar Romain Bignon

anonymous nicknames are timestamps

parent 8e8bbe35
......@@ -23,6 +23,7 @@
VERSION = "0.1"
CHANNEL = "#"
import datetime
import os
import re
import select
......@@ -87,7 +88,7 @@ class Client(object):
@property
def anon_prefix(self):
return 'a!n@ymo.us'
return '%s!an@ymo.us' % datetime.datetime.now().strftime('%H:%M:%S')
@property
def registered(self):
......@@ -179,7 +180,7 @@ class Client(object):
else:
self.reply("331 %s %s :No topic is set"
% (self.nickname, channel.name))
self.reply("353 %s = %s :a %s"
self.reply("353 %s = %s :%s"
% (self.nickname,
channelname,
self.nickname))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment