Change to accomodate for sharing of #help
This commit is contained in:
parent
b0c9cdc3bc
commit
fbd936d765
|
@ -173,7 +173,9 @@ def parse((line,irc)):
|
||||||
else:
|
else:
|
||||||
irc.send('PRIVMSG %s :Usage #invite nick'%chan)
|
irc.send('PRIVMSG %s :Usage #invite nick'%chan)
|
||||||
elif line[3]==':#help':
|
elif line[3]==':#help':
|
||||||
irc.send('PRIVMSG %s :%s'%(chan,help(' '.join(line[4:]))))
|
helptext=help(' '.join(line[4:]))
|
||||||
|
if helptext:
|
||||||
|
irc.send('PRIVMSG %s :%s'%(chan,helptext))
|
||||||
elif line[3]==':#esoteric' and chan=='#esoteric':
|
elif line[3]==':#esoteric' and chan=='#esoteric':
|
||||||
irc.send('PRIVMSG %s :Nothing here'%chan)
|
irc.send('PRIVMSG %s :Nothing here'%chan)
|
||||||
elif line[3][1:] in ('oonbotti:', 'oonbotti', 'oonbotti,', 'oonbotti2', 'oonbotti2:', 'oonbotti2,'):
|
elif line[3][1:] in ('oonbotti:', 'oonbotti', 'oonbotti,', 'oonbotti2', 'oonbotti2:', 'oonbotti2,'):
|
||||||
|
@ -287,4 +289,4 @@ def help(cmd):
|
||||||
elif cmd=='me':
|
elif cmd=='me':
|
||||||
return 'I shall.'
|
return 'I shall.'
|
||||||
else:
|
else:
|
||||||
return 'Not found'
|
return None
|
||||||
|
|
Loading…
Reference in New Issue