@@ -41,8 +41,8 @@ class Event:
4141 """
4242
4343 def __init__ (self , * , bot = None , hook = None , conn = None , base_event = None , event_type = EventType .other , content = None ,
44- target = None , channel = None , nick = None , user = None , host = None , mask = None , irc_raw = None , irc_prefix = None ,
45- irc_command = None , irc_paramlist = None , irc_ctcp_text = None ):
44+ content_raw = None , target = None , channel = None , nick = None , user = None , host = None , mask = None , irc_raw = None ,
45+ irc_prefix = None , irc_command = None , irc_paramlist = None , irc_ctcp_text = None ):
4646 """
4747 All of these parameters except for `bot` and `hook` are optional.
4848 The irc_* parameters should only be specified for IRC events.
@@ -102,6 +102,7 @@ def __init__(self, *, bot=None, hook=None, conn=None, base_event=None, event_typ
102102 # If base_event is provided, don't check these parameters, just inherit
103103 self .type = base_event .type
104104 self .content = base_event .content
105+ self .content_raw = base_event .content_raw
105106 self .target = base_event .target
106107 self .chan = base_event .chan
107108 self .nick = base_event .nick
@@ -118,6 +119,7 @@ def __init__(self, *, bot=None, hook=None, conn=None, base_event=None, event_typ
118119 # Since base_event wasn't provided, we can take these parameters
119120 self .type = event_type
120121 self .content = content
122+ self .content_raw = content_raw
121123 self .target = target
122124 self .chan = channel
123125 self .nick = nick
@@ -328,17 +330,17 @@ class CommandEvent(Event):
328330 """
329331
330332 def __init__ (self , * , bot = None , hook , text , triggered_command , conn = None , base_event = None , event_type = None ,
331- content = None , target = None , channel = None , nick = None , user = None , host = None , mask = None , irc_raw = None ,
332- irc_prefix = None , irc_command = None , irc_paramlist = None ):
333+ content = None , content_raw = None , target = None , channel = None , nick = None , user = None , host = None , mask = None ,
334+ irc_raw = None , irc_prefix = None , irc_command = None , irc_paramlist = None ):
333335 """
334336 :param text: The arguments for the command
335337 :param triggered_command: The command that was triggered
336338 :type text: str
337339 :type triggered_command: str
338340 """
339341 super ().__init__ (bot = bot , hook = hook , conn = conn , base_event = base_event , event_type = event_type , content = content ,
340- target = target , channel = channel , nick = nick , user = user , host = host , mask = mask , irc_raw = irc_raw ,
341- irc_prefix = irc_prefix , irc_command = irc_command , irc_paramlist = irc_paramlist )
342+ content_raw = content_raw , target = target , channel = channel , nick = nick , user = user , host = host , mask = mask ,
343+ irc_raw = irc_raw , irc_prefix = irc_prefix , irc_command = irc_command , irc_paramlist = irc_paramlist )
342344 self .hook = hook
343345 self .text = text
344346 self .doc = self .hook .doc
@@ -370,14 +372,14 @@ class RegexEvent(Event):
370372 :type match: re.__Match
371373 """
372374
373- def __init__ (self , * , bot = None , hook , match , conn = None , base_event = None , event_type = None , content = None , target = None ,
374- channel = None , nick = None , user = None , host = None , mask = None , irc_raw = None , irc_prefix = None ,
375+ def __init__ (self , * , bot = None , hook , match , conn = None , base_event = None , event_type = None , content = None , content_raw = None ,
376+ target = None , channel = None , nick = None , user = None , host = None , mask = None , irc_raw = None , irc_prefix = None ,
375377 irc_command = None , irc_paramlist = None ):
376378 """
377379 :param: match: The match objected returned by the regex search method
378380 :type match: re.__Match
379381 """
380382 super ().__init__ (bot = bot , conn = conn , hook = hook , base_event = base_event , event_type = event_type , content = content ,
381- target = target , channel = channel , nick = nick , user = user , host = host , mask = mask , irc_raw = irc_raw ,
382- irc_prefix = irc_prefix , irc_command = irc_command , irc_paramlist = irc_paramlist )
383+ content_raw = content_raw , target = target , channel = channel , nick = nick , user = user , host = host , mask = mask ,
384+ irc_raw = irc_raw , irc_prefix = irc_prefix , irc_command = irc_command , irc_paramlist = irc_paramlist )
383385 self .match = match
0 commit comments