#NEWLINE# def invalidCommand( self , irc , msg , tokens ) : #NEWLINE# #INDENT# channel = msg . args [ 0 ] #NEWLINE# if irc . isChannel ( channel ) : #NEWLINE# #INDENT# dunno = self . db . random ( channel ) #NEWLINE# if ( dunno is not None ) : #NEWLINE# #INDENT# dunno = dunno . text #NEWLINE# prefixNick = self . registryValue ( 'prefixNick' , channel ) #NEWLINE# env = { #NEWLINE# #INDENT# 'command' : tokens [ 0 ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . log . info ( 'Issuing "dunno" answer, %s is not a command.' , tokens [ 0 ] ) #NEWLINE# dunno = ircutils . standardSubstitute ( irc , msg , dunno , env = env ) #NEWLINE# irc . reply ( dunno , prefixNick = prefixNick )