diff options
| author | 2006-08-10 23:53:48 +0000 | |
|---|---|---|
| committer | 2006-08-10 23:53:48 +0000 | |
| commit | d0b4bb3811458aa335857514e4cbb95d5c84f433 (patch) | |
| tree | e3a88027d3ef17a26a6d1535213244536ca4dcbd /src/modules/m_cgiirc.cpp | |
| parent | Committing this as a rollback point - does not compile (diff) | |
Last of Server:: methods moved to InspIRCd::. Server:: removed.
This will need a real good tidyup later, because now everything is in the right place, but its a mess because for now i threw them into place (e.g. space indenting, etc)
Next on the todo: Make command handlers have a ServerInstance (gank!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4861 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_cgiirc.cpp')
| -rw-r--r-- | src/modules/m_cgiirc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp index 01a04d28f..36a432cfe 100644 --- a/src/modules/m_cgiirc.cpp +++ b/src/modules/m_cgiirc.cpp @@ -87,7 +87,7 @@ class CGIResolver : public Resolver class ModuleCgiIRC : public Module { - Server *Srv; + bool NotifyOpers; CGIHostlist Hosts; public: @@ -203,7 +203,7 @@ public: { log(DEBUG, "m_cgiirc.so: Matching %s against (%s or %s)", iter->hostmask.c_str(), user->host, user->GetIPString()); - if(Srv->MatchText(user->host, iter->hostmask) || Srv->MatchText(user->GetIPString(), iter->hostmask)) + if(ServerInstance->MatchText(user->host, iter->hostmask) || ServerInstance->MatchText(user->GetIPString(), iter->hostmask)) { // Deal with it... log(DEBUG, "m_cgiirc.so: Handling CGI:IRC user: %s (%s) matched %s", user->GetFullRealHost(), user->GetIPString(), iter->hostmask.c_str()); @@ -263,7 +263,7 @@ public: try { CGIResolver* r = new CGIResolver(NotifyOpers, user->password, false, user, user->fd, "PASS"); - Srv->AddResolver(r); + ServerInstance->AddResolver(r); } catch (ModuleException& e) { @@ -319,7 +319,7 @@ public: { log(DEBUG,"MAKE RESOLVER: %s %d %s",newip, user->fd, "IDENT"); CGIResolver* r = new CGIResolver(NotifyOpers, newip, false, user, user->fd, "IDENT"); - Srv->AddResolver(r); + ServerInstance->AddResolver(r); } catch (ModuleException& e) { |
