[5.30] Sound Request

Hotfixes for outdated Gamers.IRC versions.
Locked [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
User avatar
chris1
Administrator
Posts: 2973
Joined: 11.09.2003 20:17
Status: Gamers.IRC Coder
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

[5.30] Sound Request

Unread post by chris1 » 26.10.2009 12:54

Bug: Sound Request
Sound was not played

Solution:
Open the mIRC script editor (Alt+R) with gamersirc.grc, scroll to line 5718:

Code: Select all

        ignore on
        ignore -u $+ $readini(bin/ini/protections.ini,flood,ctcp_ignoretime) $nick
      }
    }
  }
Add after that:

Code: Select all

  elseif ($1 == SOUND) {
    if ($gettok($readini(mirc.ini,options,n3),19,44)) {
      if ($findfile($sound($2),$2,1)) { splay $v1 }
      elseif ($gettok($readini(mirc.ini,options,n3),21,44)) { kte_echo $chan Sound Request: $init_lang(other,7) $2 }
    }
  }
So the whole part should look as follows:

Code: Select all

...
        ignore on
        ignore -u $+ $readini(bin/ini/protections.ini,flood,ctcp_ignoretime) $nick
      }
    }
  }
  elseif ($1 == SOUND) {
    if ($gettok($readini(mirc.ini,options,n3),19,44)) {
      if ($findfile($sound($2),$2,1)) { splay $v1 }
      elseif ($gettok($readini(mirc.ini,options,n3),21,44)) { kte_echo $chan Sound Request: $init_lang(other,7) $2 }
    }
  }
}
on ^*:action:*:#:{
...
Status:
Fixed in the next Gamers.IRC version. (5.31)

Patched files:
You can find all Gamers.IRC files with integrated hotfixes here.

Locked [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable