Tweaks
This commit is contained in:
parent
36dcf308d3
commit
a80b8b7eb8
|
@ -17,11 +17,10 @@ def ctcp_ping(inp, notice=None):
|
||||||
|
|
||||||
@hook.regex(r'^\x01TIME\x01$')
|
@hook.regex(r'^\x01TIME\x01$')
|
||||||
def ctcp_time(inp, notice=None):
|
def ctcp_time(inp, notice=None):
|
||||||
the_time = time.strftime("%r", time.localtime())
|
notice('\x01TIME: The time is: %s' % time.strftime("%r", time.localtime()))
|
||||||
notice('\x01TIME: The time is: ' + the_time)
|
|
||||||
|
|
||||||
|
|
||||||
@hook.regex(r'^\x01FINGER\x01$')
|
@hook.regex(r'^\x01FINGER\x01$')
|
||||||
def ctcp_finger(inp, notice=None):
|
def ctcp_finger(inp, notice=None):
|
||||||
user = getpass.getuser()
|
user = getpass.getuser()
|
||||||
notice('\x01FINGER: Username is: ' + user)
|
notice('\x01FINGER: Username is: $s' % getpass.getuser())
|
||||||
|
|
Reference in a new issue