#NEWLINE# def _getId( self , irc , userNickHostmask ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# id = ircdb . users . getUserId ( userNickHostmask ) #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# if ( not ircutils . isUserHostmask ( userNickHostmask ) ) : #NEWLINE# #INDENT# hostmask = irc . state . nickToHostmask ( userNickHostmask ) #NEWLINE# id = ircdb . users . getUserId ( hostmask ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise KeyError #NEWLINE# #UNINDENT# #UNINDENT# return id