summaryrefslogtreecommitdiff
path: root/include/anope.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-12-15 01:33:31 -0500
committerAdam <Adam@anope.org>2012-12-15 01:33:31 -0500
commitdcd34d37287adb6aa03d32edd17fc8015b52feb8 (patch)
tree4eb963bc60c8db543973456e7fce35aaae5a4ad4 /include/anope.h
parentcdec0a3f96bbfa6d5300b7a6d602fd170e7ccd56 (diff)
Move DNS handling to a module
Diffstat (limited to 'include/anope.h')
-rw-r--r--include/anope.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/anope.h b/include/anope.h
index c241524ab..bf82e6d78 100644
--- a/include/anope.h
+++ b/include/anope.h
@@ -506,6 +506,13 @@ namespace Anope
* @param Raw message from the uplink
*/
extern void Process(const Anope::string &);
+
+ /** Does a blocking dns query and returns the first IP.
+ * @param host host to look up
+ * @param type inet addr type
+ * @return the IP if it was found, else the host
+ */
+ extern Anope::string Resolve(const Anope::string &host, int type);
}
/** sepstream allows for splitting token seperated lists.