#NEWLINE# @ internationalizeDocstring #NEWLINE# def base( self , irc , msg , args , frm , to , number ) : #NEWLINE# #INDENT# '<fromBase> [<toBase>] <number>\n\n        Converts <number> from base <fromBase> to base <toBase>.\n        If <toBase> is left out, it converts to decimal.\n        ' #NEWLINE# if ( not number ) : #NEWLINE# #INDENT# number = str ( to ) #NEWLINE# to = 10 #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# irc . reply ( self . _convertBaseToBase ( number , to , number ) ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# irc . error ( ( _ ( 'Invalid <number> for base %s: %s' ) % ( frm , number ) ) )