Compare commits
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af7eb66e5e | ||
|
|
e44f9f1b6c | ||
|
|
6d52a746af | ||
|
|
c5d37569f4 |
5 changed files with 1 additions and 118 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +0,0 @@
|
|||
/znc-infobot-0.202.tar.gz
|
||||
/znc-infobot-0.204.tar.gz
|
||||
1
dead.package
Normal file
1
dead.package
Normal file
|
|
@ -0,0 +1 @@
|
|||
2014-08-19: Dead upstream since 2011 with unfixed bugs: https://fedorahosted.org/rel-eng/ticket/5968
|
||||
1
sources
1
sources
|
|
@ -1 +0,0 @@
|
|||
80cadcba6988e66110406ad3f519c777 znc-infobot-0.204.tar.gz
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
diff -up znc-infobot-0.202/infobot.cpp.znc1 znc-infobot-0.202/infobot.cpp
|
||||
--- znc-infobot-0.202/infobot.cpp.znc1 2012-11-28 10:48:03.703592940 -0500
|
||||
+++ znc-infobot-0.202/infobot.cpp 2012-11-28 11:06:55.221609919 -0500
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "znc.h"
|
||||
#include "Chan.h"
|
||||
#include "Modules.h"
|
||||
+#include "IRCNetwork.h"
|
||||
#include "User.h"
|
||||
|
||||
#include <pcre.h>
|
||||
@@ -25,9 +26,9 @@
|
||||
|
||||
using namespace pcrecpp;
|
||||
|
||||
-typedef map<const CString, VCString> TEnabledChanMap;
|
||||
-typedef map<const CString, bool> TColorsEnabledMap;
|
||||
-typedef map<const CString, char> TTriggerCharMap;
|
||||
+typedef std::map<const CString, VCString> TEnabledChanMap;
|
||||
+typedef std::map<const CString, bool> TColorsEnabledMap;
|
||||
+typedef std::map<const CString, char> TTriggerCharMap;
|
||||
|
||||
class CInfoBotModule : public CModule
|
||||
{
|
||||
@@ -1203,8 +1204,8 @@ void CInfoBotModule::SendMessage(const C
|
||||
sText.Replace("%CLO%", "");
|
||||
}
|
||||
|
||||
- m_pUser->PutIRC("PRIVMSG " + sSendTo + " :" + sText);
|
||||
- m_pUser->PutUser(":" + m_pUser->GetIRCNick().GetNickMask() + " PRIVMSG " + sSendTo + " :" + sText);
|
||||
+ m_pNetwork->PutIRC("PRIVMSG " + sSendTo + " :" + sText);
|
||||
+ m_pNetwork->PutUser(":" + m_pNetwork->GetIRCNick().GetNickMask() + " PRIVMSG " + sSendTo + " :" + sText);
|
||||
}
|
||||
|
||||
void CInfoBotModule::OnModCommand(const CString& sCommand)
|
||||
@@ -1484,7 +1485,7 @@ CInfoBotModule::EModRet CInfoBotModule::
|
||||
{
|
||||
if(!sTarget.empty() && !isalnum(sTarget[0]))
|
||||
{
|
||||
- CheckLineForTrigger(sMessage, sTarget.AsLower(), m_pUser->GetIRCNick().GetNick());
|
||||
+ CheckLineForTrigger(sMessage, sTarget.AsLower(), m_pNetwork->GetIRCNick().GetNick());
|
||||
}
|
||||
return CONTINUE;
|
||||
}
|
||||
|
|
@ -1,71 +0,0 @@
|
|||
Summary: infobot module for ZNC IRC Bouncer
|
||||
Name: znc-infobot
|
||||
Version: 1.2
|
||||
Release: 1%{?dist}
|
||||
License: GPLv2
|
||||
Group: System Environment/Daemons
|
||||
URL: http://znc-msvc.googlecode.com
|
||||
Source0: znc-infobot-0.204.tar.gz
|
||||
# Had to generate tar.gz manually download source file : http://znc-msvc.googlecode.com/svn/trunk/flakes/infobot.cpp
|
||||
Patch0: znc-infobot-1.0-znc1.patch
|
||||
|
||||
BuildRequires: znc = %{version}
|
||||
BuildRequires: znc-devel = %{version}
|
||||
BuildRequires: c-ares c-ares-devel pcre-devel openssl-devel
|
||||
|
||||
Requires: znc = %{version}
|
||||
Requires: pcre
|
||||
|
||||
%description
|
||||
This is a user module for ZNC that provides joined
|
||||
channels with a multitude of bot commands
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-0.202
|
||||
%patch0 -p1 -b .znc1
|
||||
|
||||
%build
|
||||
LIBS="-lpcrecpp -lpcre" INCLUDES="-I/usr/include/znc" znc-buildmod infobot.cpp
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_libdir}/znc/
|
||||
mv infobot.so %{buildroot}%{_libdir}/znc/
|
||||
|
||||
%files
|
||||
%{_libdir}/znc/infobot.so
|
||||
|
||||
%changelog
|
||||
* Mon Aug 26 2013 Mat Booth <fedora@matbooth.co.uk> - 1.2-1
|
||||
- Rebuild for znc 1.2
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Wed Nov 28 2012 Tom Callaway <spot@fedoraproject.org> - 1.0-2
|
||||
- it lives!
|
||||
|
||||
* Tue Nov 13 2012 Nick Bebout <nb@fedoraproject.org> - 1.0-1
|
||||
- Rebuild for znc 1.0
|
||||
|
||||
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.206-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Sat Apr 21 2012 Nick Bebout <nb@fedoraproject.org> - 0.206-1
|
||||
- Rebuild for znc 0.206
|
||||
|
||||
* Thu Feb 9 2012 Nick Bebout <nb@fedoraproject.org> - 0.204-1
|
||||
- Rebuild for znc 0.204
|
||||
|
||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.202-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Tue Oct 18 2011 Nick Bebout <nb@fedoraproject.org> - 0.202-1
|
||||
- ZNC is at 0.202 now
|
||||
- Require same version of ZNC as module
|
||||
|
||||
* Sun Sep 25 2011 Keiran "Affix" Smith <affix@fedoraproject.org> - 0.200-1
|
||||
- Initial Package of 0.200
|
||||
|
||||
Reference in a new issue