diff options
author | Robby <robby@chatbelgie.be> | 2017-01-17 05:03:25 +0100 |
---|---|---|
committer | Robby <robby@chatbelgie.be> | 2017-01-17 05:03:25 +0100 |
commit | 76ce8ece1a4803c98bfe9460f40bf8e0fbc409e6 (patch) | |
tree | 26e6da47f20de64ef76fe4afc459bbb7889bd417 /include/modules | |
parent | 464093d36e87f3df999145e42ed30fc0dfc55c52 (diff) |
Cleanup some excess whitespaces and tabs, and fix a few typos along the way.
Diffstat (limited to 'include/modules')
-rw-r--r-- | include/modules/dns.h | 8 | ||||
-rw-r--r-- | include/modules/os_ignore.h | 2 | ||||
-rw-r--r-- | include/modules/os_news.h | 6 | ||||
-rw-r--r-- | include/modules/os_session.h | 2 | ||||
-rw-r--r-- | include/modules/redis.h | 2 | ||||
-rw-r--r-- | include/modules/ssl.h | 2 | ||||
-rw-r--r-- | include/modules/xmlrpc.h | 2 |
7 files changed, 12 insertions, 12 deletions
diff --git a/include/modules/dns.h b/include/modules/dns.h index 69e92e68b..7e8de8d8a 100644 --- a/include/modules/dns.h +++ b/include/modules/dns.h @@ -78,11 +78,11 @@ namespace DNS Question() : type(QUERY_NONE), qclass(0) { } Question(const Anope::string &n, QueryType t, unsigned short c = 1) : name(n), type(t), qclass(c) { } - inline bool operator==(const Question & other) const { return name == other.name && type == other.type && qclass == other.qclass; } + inline bool operator==(const Question & other) const { return name == other.name && type == other.type && qclass == other.qclass; } struct hash { - size_t operator()(const Question &q) const + size_t operator()(const Question &q) const { return Anope::hash_ci()(q.name); } @@ -94,7 +94,7 @@ namespace DNS unsigned int ttl; Anope::string rdata; time_t created; - + ResourceRecord(const Anope::string &n, QueryType t, unsigned short c = 1) : Question(n, t, c), ttl(0), created(Anope::CurTime) { } ResourceRecord(const Question &q) : Question(q), ttl(0), created(Anope::CurTime) { } }; @@ -104,7 +104,7 @@ namespace DNS std::vector<Question> questions; std::vector<ResourceRecord> answers, authorities, additional; Error error; - + Query() : error(ERROR_NONE) { } Query(const Question &q) : error(ERROR_NONE) { questions.push_back(q); } }; diff --git a/include/modules/os_ignore.h b/include/modules/os_ignore.h index 6d3680abb..3fc83fd41 100644 --- a/include/modules/os_ignore.h +++ b/include/modules/os_ignore.h @@ -25,7 +25,7 @@ class IgnoreService : public Service { protected: IgnoreService(Module *c) : Service(c, "IgnoreService", "ignore") { } - + public: virtual void AddIgnore(IgnoreData *) = 0; diff --git a/include/modules/os_news.h b/include/modules/os_news.h index c431071eb..3b473bf70 100644 --- a/include/modules/os_news.h +++ b/include/modules/os_news.h @@ -39,11 +39,11 @@ class NewsService : public Service NewsService(Module *m) : Service(m, "NewsService", "news") { } virtual NewsItem *CreateNewsItem() = 0; - + virtual void AddNewsItem(NewsItem *n) = 0; - + virtual void DelNewsItem(NewsItem *n) = 0; - + virtual std::vector<NewsItem *> &GetNewsList(NewsType t) = 0; }; diff --git a/include/modules/os_session.h b/include/modules/os_session.h index cdb089800..67ad84692 100644 --- a/include/modules/os_session.h +++ b/include/modules/os_session.h @@ -48,7 +48,7 @@ class SessionService : public Service virtual Exception *FindException(User *u) = 0; - virtual Exception *FindException(const Anope::string &host) = 0; + virtual Exception *FindException(const Anope::string &host) = 0; virtual ExceptionVector &GetExceptions() = 0; diff --git a/include/modules/redis.h b/include/modules/redis.h index 4bb62c7c6..fbcecebf7 100644 --- a/include/modules/redis.h +++ b/include/modules/redis.h @@ -23,7 +23,7 @@ namespace Redis Reply() { Clear(); } ~Reply() { Clear(); } - + void Clear() { type = NOT_PARSED; diff --git a/include/modules/ssl.h b/include/modules/ssl.h index 5d3ae2b97..bcda29537 100644 --- a/include/modules/ssl.h +++ b/include/modules/ssl.h @@ -10,6 +10,6 @@ class SSLService : public Service { public: SSLService(Module *o, const Anope::string &n) : Service(o, "SSLService", n) { } - + virtual void Init(Socket *s) = 0; }; diff --git a/include/modules/xmlrpc.h b/include/modules/xmlrpc.h index dc1e9d259..0447f9012 100644 --- a/include/modules/xmlrpc.h +++ b/include/modules/xmlrpc.h @@ -17,7 +17,7 @@ class XMLRPCRequest Anope::string id; std::deque<Anope::string> data; HTTPReply& r; - + XMLRPCRequest(HTTPReply &_r) : r(_r) { } inline void reply(const Anope::string &dname, const Anope::string &ddata) { this->replies.insert(std::make_pair(dname, ddata)); } inline const std::map<Anope::string, Anope::string> &get_replies() { return this->replies; } |