Fixed regression reintroduced by some of my initial C++ cleanups. The
bug created the temporary channels with maxusers 0 for unlimited instead of -1 (0 means restricted channel).
This commit is contained in:
parent
6867ad29d4
commit
05133dc72e
1 changed files with 2 additions and 2 deletions
|
@ -1915,9 +1915,9 @@ extern int conn_set_channel(t_connection * c, char const * channelname)
|
|||
if (!channel)
|
||||
{
|
||||
if(clantag)
|
||||
channel = channel_create(channelname,channelname,NULL,0,1,1,prefs_get_chanlog(), NULL, NULL, (prefs_get_maxusers_per_channel() > 0) ? prefs_get_maxusers_per_channel() : 0, 0, 1,0);
|
||||
channel = channel_create(channelname,channelname,NULL,0,1,1,prefs_get_chanlog(), NULL, NULL, (prefs_get_maxusers_per_channel() > 0) ? prefs_get_maxusers_per_channel() : -1, 0, 1,0);
|
||||
else
|
||||
channel = channel_create(channelname,channelname,NULL,0,1,1,prefs_get_chanlog(), NULL, NULL, (prefs_get_maxusers_per_channel() > 0) ? prefs_get_maxusers_per_channel() : 0, 0, 0,0);
|
||||
channel = channel_create(channelname,channelname,NULL,0,1,1,prefs_get_chanlog(), NULL, NULL, (prefs_get_maxusers_per_channel() > 0) ? prefs_get_maxusers_per_channel() : -1, 0, 0,0);
|
||||
if (!channel)
|
||||
{
|
||||
eventlog(eventlog_level_error,__FUNCTION__,"[%d] could not create channel on join \"%s\"",conn_get_socket(c),channelname);
|
||||
|
|
Loading…
Add table
Reference in a new issue