Fix some function prototypes

CChan::OnOp() and CChan::OnVoice() were both undefinied.

These two prototypes confused the compiler when calling CSocket::Listen(1234)
since they both matched:

CSocket::Listen(unsigned short, bool=false, unsigned int=0);
Csock::Listen(unsigned short, int=SOMAXCONN, const CString&="", u_int=0);

Thanks to DarthGandalf for noticing these.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2108 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-08-20 16:40:56 +00:00
parent 2312d611be
commit dbb767ca65
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -68,8 +68,6 @@ public:
void ModeChange(const CString& sModes, const CString& sNick = "");
bool AddMode(unsigned char uMode, const CString& sArg);
bool RemMode(unsigned char uMode);
void OnOp(const CString& sOpNick, const CString& sNick, bool bOpped);
void OnVoice(const CString& sOpNick, const CString& sNick, bool bVoiced);
CString GetModeString() const;
CString GetModeArg(CString& sArgs) const;
CString GetModeForNames() const;
+1 -1
View File
@@ -126,7 +126,7 @@ public:
virtual bool ConnectionFrom(const CString& sHost, unsigned short uPort);
bool Connect(const CString& sHostname, unsigned short uPort, bool bSSL = false, unsigned int uTimeout = 60);
bool Listen(unsigned short uPort, bool bSSL = false, unsigned int uTimeout = 0);
bool Listen(unsigned short uPort, bool bSSL, unsigned int uTimeout = 0);
// Getters
CModule* GetModule() const;