possible fix for logserv crash experienced by DNB
This commit is contained in:
parent
aff3955fce
commit
0fd4045866
1 changed files with 4 additions and 0 deletions
|
@ -127,6 +127,10 @@ void ChannelTopic( const char *chan, const char *owner, const char *ts, const ch
|
|||
strlcpy( c->topicowner, owner, MAXHOST );
|
||||
c->topictime = ( ts ) ? atoi( ts ) : me.now;
|
||||
cmdparams = (CmdParams *) ns_calloc( sizeof( CmdParams ) );
|
||||
cmdparams->source = FindUser( owner );
|
||||
if( !cmdparams->source ) {
|
||||
cmdparams->source = FindServer( owner );
|
||||
}
|
||||
cmdparams->channel = c;
|
||||
SendAllModuleEvent( EVENT_TOPIC, cmdparams );
|
||||
ns_free( cmdparams );
|
||||
|
|
Reference in a new issue