aboutsummaryrefslogtreecommitdiffstats
path: root/main/sircbot/0001-add-simple-hack-to-allow-nickserv-identification.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-08-01 18:18:34 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-08-01 18:19:56 +0200
commit304d76ab2d7c844dfc7ff2ae81c3651a8a6570a9 (patch)
tree1ba72a59086ee0f777af1d5611b021e83c8069ec /main/sircbot/0001-add-simple-hack-to-allow-nickserv-identification.patch
parent0884190918f47872a45bcf231b9b04db18a96bd6 (diff)
downloadaports-304d76ab2d7c844dfc7ff2ae81c3651a8a6570a9.tar.gz
aports-304d76ab2d7c844dfc7ff2ae81c3651a8a6570a9.tar.bz2
aports-304d76ab2d7c844dfc7ff2ae81c3651a8a6570a9.tar.xz
main/sircbot: add simple hack to allow nickserv identification
Diffstat (limited to 'main/sircbot/0001-add-simple-hack-to-allow-nickserv-identification.patch')
-rw-r--r--main/sircbot/0001-add-simple-hack-to-allow-nickserv-identification.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/main/sircbot/0001-add-simple-hack-to-allow-nickserv-identification.patch b/main/sircbot/0001-add-simple-hack-to-allow-nickserv-identification.patch
new file mode 100644
index 0000000000..6aeae2698b
--- /dev/null
+++ b/main/sircbot/0001-add-simple-hack-to-allow-nickserv-identification.patch
@@ -0,0 +1,44 @@
+From b158567d16bbc82ce289d96456d66e45c8a7154c Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Wed, 1 Aug 2018 17:44:16 +0200
+Subject: [PATCH] add simple hack to allow nickserv identification
+
+pass -c "nickserv :identify <password>!
+---
+ sircbot.c | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/sircbot.c b/sircbot.c
+index 5a40695..51572c0 100644
+--- a/sircbot.c
++++ b/sircbot.c
+@@ -608,12 +608,16 @@ int main(int argc, char *argv[])
+ const char *username = "sircbot";
+ const char *pass = NULL;
+ const char *logfile = "/dev/null";
++ const char *connmsg = NULL;
+ struct sircbot_session sb;
+ int i, c, port = 6667, multimode = 0;
+
+ sb.runhooks = 1;
+- while ((c = getopt(argc, argv, "fl:mn:Np:P:r:s:u:")) != -1) {
++ while ((c = getopt(argc, argv, "c:fl:mn:Np:P:r:s:u:")) != -1) {
+ switch (c) {
++ case 'c':
++ connmsg = optarg;
++ break;
+ case 'f':
+ foreground = 1;
+ break;
+@@ -698,6 +702,8 @@ int main(int argc, char *argv[])
+ sleep(10);
+ continue;
+ }
++ if (connmsg)
++ irc_send(sb.sess, "PRIVMSG", connmsg);
+
+ irc_loop(&sb);
+ irc_close(sb.sess, "bye");
+--
+2.18.0
+