inspircd / inspircd-contrib

Third-party InspIRCd module repository.
https://www.inspircd.org
66 stars 72 forks source link

m_extbanregex: Update the used channel notice method. #233

Closed genius3000 closed 4 years ago

genius3000 commented 4 years ago

Summary

Update the channel notice method used for two possibilities: 1) SendChannelNotice is now deprecated and it's replacement has been available since 3.0.0(a1) 2) Use the updated WriteNotice if the version is new enough. This method was recently changed in the insp3 branch, not in a release as of yet. I'm guessing that the next release will be 3.5.0.

Rationale

Just keeping updated with the core. As for the version check, people tend to not upgrade as often as they should.

Testing Environment

I have tested this pull request on:

Operating system name and version: Ubuntu 16.04 Compiler name and version: GCC 5.4.0