#NEWLINE# def testOnlyNicks( self ) : #NEWLINE# #INDENT# msg = ircmsgs . join ( self . channel , prefix = 'hello!foo@bar' ) #NEWLINE# self . irc . feedMsg ( onlynicks ) #NEWLINE# karma = conf . supybot . plugins . Karma #NEWLINE# resp = karma . response ( ) #NEWLINE# onlynicks = karma . onlyNicks ( ) #NEWLINE# try : #NEWLINE# #INDENT# karma . onlynicks . setValue ( True ) #NEWLINE# karma . response . setValue ( True ) #NEWLINE# self . assertSnarfNoResponse ( 'abcd++' ) #NEWLINE# self . assertSnarfRegexp ( 'hello--' , 'is now' ) #NEWLINE# self . assertSnarfNoResponse ( 'abcd--' ) #NEWLINE# self . assertSnarfRegexp ( 'hello++' , 'is now' ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# karma . onlynicks . setValue ( onlynicks ) #NEWLINE# karma . response . setValue ( resp )