#NEWLINE# @ irc3d . command #NEWLINE# def PART( self , client , args = None , **kwargs ) : #NEWLINE# #INDENT# ' PART requires at least a channel argument to be given. It will exit\n        the client from the specified channel. More than one channel may be\n        specified, separated with commas (no spaces).\n\n        An optional part message may be given to be displayed to the channel.\n\n            %%PART <channel> [<:reason>...]\n        ' #NEWLINE# message = ':{mask} PART {<channel>}' #NEWLINE# if args . get ( '<:reason>' ) : #NEWLINE# #INDENT# args [ 'data' ] = ' ' . join ( args [ '<:reason>' ] ) #NEWLINE# message += ' {data}' #NEWLINE# #UNINDENT# kwargs . update ( broadcast = message . format ( mask = client . mask , ** args ) , channel = args . get ( '<channel>' ) ) #NEWLINE# self . part ( client . nick , client . mask , ** kwargs ) #NEWLINE# client . channels . remove ( args [ '<channel>' ] )